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