Ubuntu12.04默認未啟用Telnet服務,配置Telnet服務步驟如下:
1. 安裝和配置
安裝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
2. 測試Telnet服務
在windows的命令行中輸入:telnet 192.168.1.122(虛擬機ip)按照提示輸入用戶名和密碼進入(非root用戶)
|
新聞熱點
疑難解答
圖片精選