Telnet实现windows远程登录ubuntu

开启windows端Telnet功能

控制面板→程序→启用或关闭Windows功能→选择Telnet客户端

      

      2.Ubuntu开启Telnet服务

    sudo apt-get install xinetd telnetd  

编辑/etc/inetd.conf,在文件中添加:

telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.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   
}  

重启网络

sudo /etc/init.d/xinetd restart

  3.测试Windows通过Telnet远程登录Ubuntu

打开cmd→输入telnet→输入open ubuntu ip→输入用户名密码

远程登录成功~

  

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注