我使用debootstrap在文件夹中设置了chroot jail。 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。
答案 0 :(得分:0)
我终于弄明白了问题是什么
我的主机系统将zsh作为默认shell,我用它进入chroot jail并启动telnet服务器,它将bash作为其默认shell。所以,当我使用bash进入chroot监狱并启动telnet服务器时,它起作用了!
每次登录时仍会向我显示此错误消息,但其他一切正常。
-bash: fork: retry: No child processes
-bash: fork: retry: No child processes
-bash: fork: retry: No child processes
-bash: fork: retry: No child processes
-bash: fork: Resource temporarily unavailable