1,安装服务apt-get install xinetd telnetd.
2,安装成功后编辑/etc/inetd.conf文件,
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
3,修改文件/etc/xinetd.d/telnet文件:
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
4,重启telnet服务:/etc/init.d/xinetd restart。
5,查看当前网络状态:netstat -tnlup,查看端口号23状态为LISTEN则telnet服务即被开启。
阅读(1326) | 评论(0) | 转发(0) |