参见文章
1.安装telnet服务
sudo apt-get install xinetd telnetd
2.编辑/etc/inetd.conf,内容如下
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
3.修改/etc/xinetd.conf,在# log_type = SYSLOG daemon info下面添加内容
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
4.编辑/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
}
5.重启机器或网络
sudo /etc/init.d/xinetd restart