ubuntu12.04 telnet配置


剛安裝的ubuntu12.04還沒有telnet功能,需要配置一下
我主要是想讓ubuntu12.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.

kevin@ubuntu:~$


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM