Ubuntu开启Telnet
一、安装Telnet服务
sudo apt-get install xinetd 
sudo apt-get install telnetd修改/etc/xinetd.conf,在# log_type = SYSLOG daemon info下面添加内容:
instances = 60   
log_type = SYSLOG authpriv   
log_on_success = HOST PID   
log_on_failure = HOST   
cps = 25 30编辑/etc/xinetd.d/telnet文件(没有可自行创建此文件),添加以下内容:
# default: on   
# description: The telnet server serves telnet sessions; it uses \   
# unencrypted username/password pairs for authentication.   
service telnet   
{   
disable = no   
flags = REUSE   
socket_type = stream   
wait = no   
user = root   
server = /usr/sbin/in.telnetd   
log_on_failure += USERID   
}重启Telnet服务:
sudo /etc/init.d/xinetd restart注意:如果你用的云主机,那么确保你的23端口被允许访问。
二、远程连接
telnet your IP
# 根据提示输入用户名和密码就可以了Last updated
Was this helpful?