Find the answer to your Linux question:
Results 1 to 2 of 2
Hello everyone, im having troubles installing a ssh chrooted envioroment; at first look everything works fine, doing a "chroot /chroot/ /bin/sh" i enter to the chroot system Ok. But loggin ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    24

    Unhappy Chroot ssh login problem


    Hello everyone, im having troubles installing a ssh chrooted envioroment; at first look everything works fine, doing a "chroot /chroot/ /bin/sh" i enter to the chroot system Ok.

    But loggin via ssh to the account i enter to the home directory config in the passwd but the user is not chrooted, i can see the system normally..

    here are my passwd files;

    /etc/passwd

    gjail:603:603::/chroot/./home/gjail/:/bin/sh

    /chroot/etc/passwd

    gjail:603:603::/home/gjail:/bin/sh


    Any tip or clue will be very helpfully!!


    Best Regards!

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Is this chrooted sshd environment to be used as any form of 'security' feature? If so, I'd point out that it's been the topic of recent discussions.

    If you need a relatively secure sshd environment, you're going to want to use a Linux VServer or a FreeBSD Jail. (I personally use the latter.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •