View previous topic :: View next topic |
Author |
Message |
amigafan Tux's lil' helper
Joined: 10 Jul 2003 Posts: 134 Location: Ahrensburg, Germany
|
Posted: Wed Nov 14, 2007 2:28 pm Post subject: chroot ssh |
|
|
We've used a chroot environment for some ssh users. We followed this guide: http://gentoo.linuxhowtos.org/openssh/chrootedssh.htm
After one of the last updates this doesn't work anymore. Our clients get a "connection closed" instantly after typing in the password. We rebuild the chroot dir with all binaries but this doesn't work. Can anyone confirm this? I don't know which package is responsible for this - maybe the pam update?
thanks, |
|
Back to top |
|
|
Dammital Apprentice
Joined: 05 Nov 2004 Posts: 189
|
|
Back to top |
|
|
amigafan Tux's lil' helper
Joined: 10 Jul 2003 Posts: 134 Location: Ahrensburg, Germany
|
Posted: Fri Nov 16, 2007 9:40 am Post subject: |
|
|
Yes, of course Its related with the new way pam handles chroot logins. pam_chroot is now needed and it needs to be configured.[/quote] |
|
Back to top |
|
|
Nobbs n00b
Joined: 16 Nov 2007 Posts: 1
|
Posted: Fri Nov 16, 2007 12:52 pm Post subject: |
|
|
in /etc/pam.d/sshd
add the line
Code: | session required pam_chroot.so debug | (the debug is optional)
in /etc/security/chroot.conf set up th chrooted homes of your users
|
|
Back to top |
|
|
|