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.

~ #

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM