转载自 http://blog.youkuaiyun.com/ycc541/article/details/46610311
1.安装telnet服务
- sudo apt-get install xinetd telnetd
2.编辑/etc/inetd.conf,在任意位置添加以下内容
- telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
3.修改/etc/xinetd.conf,在# log_type = SYSLOG daemon info下面添加内容
- instances = 60
- log_type = SYSLOG authpriv
- log_on_success = HOST PID
- log_on_failure = HOST
- cps = 25 30
4.编辑/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
- log_on_failure += USERID
- }
5.重启机器或网络
- sudo /etc/init.d/xinetd restart
本文详细介绍如何在Ubuntu系统上安装及配置Telnet服务。包括安装telnet服务所需的软件包,编辑配置文件以启用Telnet服务,以及重启服务等步骤。
1499

被折叠的 条评论
为什么被折叠?



