Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 远程登录chroot环境内部_Linux_Ubuntu 12.04_Telnet_Chroot - Fatal编程技术网

Linux 远程登录chroot环境内部

Linux 远程登录chroot环境内部,linux,ubuntu-12.04,telnet,chroot,Linux,Ubuntu 12.04,Telnet,Chroot,我使用debootstrap在文件夹中设置了一个chroot监狱。在这个监狱里,我安装了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: Las

我使用debootstrap在文件夹中设置了一个chroot监狱。在这个监狱里,我安装了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。

我终于找到了问题所在。
我的主机系统使用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