Debian Linux系統(tǒng)如何配置Telnet服務 時間:2014-04-05 來源:服務器之家 投稿:root 步驟: 1. debian:~# apt-get install telnetd debian:~# apt-get install telnetd-ssl debian:~# apt-get install xinetd (安裝包xinetd……) 2. 新建一個文件/etc/xinetd.d/telnet,方法及內容如下,并保存. debian:~# nano -w /etc/xinetd.d/telnet GNU nano 1.2.4 File: /etc/xinetd.d/telnet # default: on # description: The telnet server serves telnet sessions; it uses \ # unencrypted username/password pairs for authentication. service telnet { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd server_args = -h log_on_failure += USERID } 3. debian:~# apt-get install telnet (安裝包telnet……) 4. 嘗試連接: debian:~# telnet 10.11.12.13(本機IP) 結果: Trying 10.11.12.13... Connected to 10.11.12.13. Escape character is '^]'. debian login: root Login incorrect #默認情況下不允許root用戶登陸,安全原因,具體查閱telnet協(xié)議 debian login: user #自建用戶 Password: Last login: Mon Sep 27 20:51:33 2004 from localhost.localdomain on pts/3 Linux debian 2.6.8-1-686 #1 Tue Sep 14 00:22:58 EDT 2004 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. user@debian:~$ #登陸成功后 如果想啟用root登陸,做法如下: debian:~# vim /etc/pam.d/login 把該行 auth requisite pam_securetty.so 注釋掉即可,配置完畢。 命令: debian:~# /etc/init.d/xinetd (命令) force-reload(強制刷新)|reload(刷新)|restart(重啟)|start(啟動)|stop(關閉) 其余的自己看到辦 |
|