第一种方式:通过inetd启动telnetd服务必须这样设置busybox配置 Networking Utilities —> 去掉 [ ] Support standalone telnetd (not inetd only)配置/etc/inetd.conf [root@RITA ~]# vi /etc/inetd.conf telnet stream tcp nowait root /usr/sbin/telnetd telnetd运行命令:/usr/sbin/inetd第二种方式:直接运行telnetd,启动服务必须这样设置busybox配置: Networking Utilities —> 选择 [*] Support standalone telnetd (not inetd only)运行命令: /usr/sbin/telnetd可能出现的问题1)客户端登录不上,查看/var/log/message,得到如下信息:cat /var/log/message
Nov 18 10:04:11 RITA daemon.err telnetd[1442]: bind: Address already in use解决方法:修改busybox的配置
Networking Utilities —> 去掉 [ ] Support standalone telnetd (not inetd only)
cat /var/log/message
2)如果出现如下信息Nov 18 11:48:50 RITA daemon.err telnetd[1782]: can’t find free pty解决方法:修改busybox配置
Busybox Settings —>
General Configuration —> 去掉[ ] Use the devpts filesystem for Unix98 PTYs