1. 下載並安裝 telnet server
    $ sudo apt-get install xinetd telnetd
 
2. 修改設定檔
    2.1 修改 /etc/inetd.conf, 加入以下敘述
        telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
        若檔案不存在, 則自行創建一個新的.
 
    2.2 修改 /etc/xinetd.conf, 如以下
        # Simple configuration file for xinetd
        #
        # Some defaults, and include /etc/xinted.d/
        defaults
        {
        #Please note that you need a log_type line to be able to use log_on_success
        #and log_on_failure. The default is the following :
        #log_type = SYSLOG daemon info
     
          instances = 60
          log_type = SYSLOG authpriv
          log_on_success = HOST PID
          log_on_failure = HOST
          cps = 25 30
        }
 
3.  重啟 telnet service
    $ sudo service xinetd restart
    
4. 測試連線
    $ telnet localhost
arrow
arrow
    文章標籤
    telnet ubuntu
    全站熱搜

    ET 發表在 痞客邦 留言(0) 人氣()