安装
# sudo apt-get install xinetd telnetd
配置 -> 加入以下选项
# sudo vi /etc/inetd.conf
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
# sudo vi /etc/xinetd.conf
defaults
{
instances = 60
log_type = SYSLOG
authpriv log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
# sudo vi /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
}
重启
# sudo /etc/init.d/xinetd restart
root登录
# sudo vi /etc/pam.d/login
#auth required lib/security/pam_securetty.so
原文链接:https://www.f2er.com/ubuntu/352822.html