1、安装xinetd telnetd
sudo apt-get install xinetd telnetd
2、修改配置文件
创建 “/etc/inetd.conf”,并填写下行内容(如果存在跳过此步骤)
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
修改/etc/xinetd.conf插入以下内容:instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30创建或修改/etc/xinetd.d/telnet,并加入以下内容:
service telnet { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID }5. 重启机器或xinetd服务,完成