配置telnetd遇到的一些坑,记录一下shell
BusyBox版本1.22.1ui
Networking Utilities开发
-->[*] telnetd it
错误1:io
Escape character is '^]'.
Connection closed by foreign host.sed
在开发板服务端使用前台执行配置
~ # telnetd -F
telnetd: can't find free ptyfile
发现没有pty。command
需配置密码
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.
~ #