Debian Linux系统如何配置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协议
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(关闭)
其余的自己看到办
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。