1.sudo apt-get install xinetd telnetd
2.vim /etc/xinetd.d/telnet
(创建配置文件)
加入以下内容:
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
server_args = -h
log_on_failure += USERID
}
/etc/init.d/xinetd restart
重启一下服务