Ubuntu安装telnet

安装

# 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
posted @ 2017-05-29 10:25  thomas_blog  阅读(427)  评论(0编辑  收藏  举报