Ubuntu 安装 Telnet
参考:在 ubuntu 上安裝 telnet service
1.安装:
sudo apt-get install xinetd telnetd
2.修改inetd.conf
:
vim /etc/inetd.conf
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
3.增加telnet需要的端口号:
vi /etc/services
如果没有telnet选项,则添加如下语句:
telnet 23/tcp
即指定其端口为23.
4.开启telnet服务:
/etc/init.d/xinetd restart
5.测试:
telnet localhost 23 // or 22
2017.3.22
To improve is to change, to be perfect is to change often.