BusyBox telnetd配置
配置telnetd遇到的一些坑,记录一下
BusyBox版本1.22.1
Networking Utilities
-->[*] telnetd
错误1:
Escape character is '^]'.
Connection closed by foreign host.
在开发板服务端使用前台执行
~ # telnetd -F
telnetd: can't find free pty
发现没有pty。
需配置
General Configuration
-->
[*] Use the devpts filesystem for Unix98 PTYs
检查mount -t devpts none /dev/pts 有没有成功。
错误2:
配置完上述选项依然报错
Connection closed by foreign host.
原因是telnet需要用户名密码来登陆
Login/Password Management Utilities
-->[*] login
--> [*] passwd
使用passwd修改root密码之后可以正常telnet登陆
(none) login: root
Password:
BusyBox v1.22.1 (2016-10-25 16:04:14 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ #