配置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.
~ #