我在ubuntu9.04中安裝telnet服務!
較關鍵的地方,我用紅字標記起來。
其實在ubuntu中安裝軟體不難,APT的設計真的很不錯。
目前的UNIX演化,大家都不用telnet了,因為它的安全性很可議。
遠端登入的功能被SSH取而代之~
不過,透過一些安全性的設計,像是設限可登入IP,改變port,運用超級服務...
telnet有時還是很好用的~
安裝過程中,我注意到,它居然是寫到 inetd.conf,而不是xinetd.conf?
真的有點蹊蹺?原來就Debian系而言,inetd還依然是超級服務的原型,可不是說換就換。
還是需要動動手腳,才能移到xinetd上運作。
過程中的說明,指出若是要改成用xinetd,要用itox指令,進行移轉作業。
root@ubuntu94:/etc/xinetd.d# apt-get install telnetdReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following NEW packages will be installed: telnetd0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 42.7kB of archives.After this operation, 156kB of additional disk space will be used.Get:1 http://tw.archive.ubuntu.com jaunty/universe telnetd 0.17-36 [42.7kB]Fetched 42.7kB in 5s (8294B/s)Selecting previously deselected package telnetd.(Reading database ... 52983 files and directories currently installed.)Unpacking telnetd (from .../telnetd_0.17-36_i386.deb) ...Processing triggers for man-db ...Setting up telnetd (0.17-36) ...Adding user telnetd to group utmp--------- IMPORTANT INFORMATION FOR XINETD USERS ----------The following line will be added to your /etc/inetd.conf file:telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetdIf you are indeed using xinetd, you will have to convert theabove into /etc/xinetd.conf format, and add it manually. See/usr/share/doc/xinetd/README.Debian for more information.Suggested entry (automatically converted using itox):service telnet{ socket_type = stream protocol = tcp wait = no user = telnetdYou must use option -daemon_dir if you use tcpd-----------------------------------------------------------root@ubuntu94:/etc/xinetd.d#可是我找到建議參考的文件README.Debian,卻看到同目錄下的另一個文件 README.update-inetd。
文件裡頭建議可以使用 xconv.pl 來轉換,而且似乎更友善,更強大!
看副檔名是pl,可以猜出是perl指令稿!
用法也簡單:
# xconv.pl < /etc/inetd.conf > /etc/xinetd.conf
無意間獲得的小小心得,筆記起來囉。