Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I connect to an account configured to use a chroot jail, I just get a “Connection closed” message. Why?

0

The problem is that you have not set up your chroot jail properly… Something is missing. As I’ve said numerous times throughout the documentation, setting up a chroot jail is very system dependent, so if you’ve read the CHROOT file carefully and followed the directions there carefully, and it still doesn’t work, then I almost certainly can’t help you. But then, if you had done all that, you wouldn’t need to be looking here… Note that if you are using rssh with Solaris 9, FreeBSD, AIX 5.2, or probably other operating systems, you will need to copy your system shell into the chroot jail, because wordexp() uses it to expand command-line arguments on those platforms. See the CHROOT file for more details. There is a script called mkchroot.sh included with the source and the RPM packages. For most Linux users this should do the job, though it may need some small modifications for paths of some files. However it seems that on recent Linux distros, the script is missing something important

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123