1. sudo apt-get install xinetd telnetd
2. sudo vim /etc/inetd.conf //增加下列代码
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
3.sudo vim /etc/xinetd.conf //增加下列代码
......... 以上省略..........
# log_type=SYSLOG daemon info
instances=60
log_type=SYSLOG authpriv
log_on_success=HOST PID
log_on_failure=HOST
cps=2530
4.sudo vim /etc/xinetd.d/telnet //增加下列代码
#default :on
#description:The telnet server servers 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
}
5.重启机器或重启网络服务sudo /etc/init.d/xinetd restart