我已经使用 debootstrap 在文件夹中设置了一个 chroot 监狱。Inisde这个监狱,我安装了telnetd。但是当我尝试从远程主机登录时,连接在登录后立即关闭。
administrator@ubuntu:/$ telnet 192.168.1.100
Trying 192.168.1.100...
Connected to 192.168.1.100.
Escape character is '^]'.
Ubuntu 12.04 LTS
dchub login: trail
Password:
Last login: Mon Sep 9 09:51:47 UTC 2013 from 192.168.1.200 on pts/3
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.9.9-1-ARCH x86_64)
* Documentation: https://help.ubuntu.com/
Cannot execute /bin/bash: Resource temporarily unavailable
Connection closed by foreign host.
administrator@ubuntu:/$
我已经挂载了 /proc 和 /dev/pts。