Ubuntu安装telnet

前端之家收集整理的这篇文章主要介绍了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
原文链接:https://www.f2er.com/ubuntu/352822.html

猜你在找的Ubuntu相关文章