busybox已经提供了telnetd的支持,只需以下几步开启嵌入式linux的telnetd支持
1、内核配置
Device Drivers --->
Character devices
[*] Unix98 PTY support
[*] Legacy (BSD) PTY support
(256) Maximum number of
2、busybox
# BusyBox -> Networking Utilities -> telnetd
# BusyBox -> Networking Utilities -> Support standalone telnetd (not inetd only)
3、文件系统修改
mkdir /dev/pts
mknod ptmx c 5 2
修改/etc/fstab 增加
devpts /dev/pts devpts defaults 0 0
增加/etc/group
root::0:root
增加/etc/passwd
root::0:0:root:/:/bin/sh
4、运行 telnetd启动telnet服务