2021-05-12 14:32:11
Ubuntu 12.04 Telnet服務設定
剛安裝的Ubuntu 12.04還沒有telnet功能,需要設定一下。我主要是想讓Ubuntu 12.04開啟telnet服務做伺服器。
安裝openbsd-inetd:
#sudo apt-get install openbsd-inetd
安裝telnetd:
#sudo apt-get install telnetd
在etc/inetd.conf檔案中可以看到這一行內容:
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
如果沒有這一行內容,就手動加上
重新啟動openbsd-inetd
#/etc/init.d/openbsd-inetd restart
檢視telnet執行狀態
#netstat -a | grep telnet
輸出: tcp 0 0 *:telnet *:* LISTEN
在windows的命令列中輸入:telnet 192.168.1.8(我的linux的IP地址)
按照提示輸入使用者名稱和密碼進入(非root使用者)
效果如下:
Ubuntu 12.04
ubuntu login: kevin
Password:
Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19
20:34:50 UTC 20
10 i686 GNU/Linux
Ubuntu 12.04
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
New release 'natty' available.
Run 'do-release-upgrade' to upgrade to it.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Ubuntu下安裝建立Telnet 伺服器 http://www.linuxidc.com/Linux/2010-03/25150.htm
相關文章