- 開啟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→輸入用戶名密碼
遠程登錄成功~