SSH sessions will just terminate immediately after successful logon. Doh.
Two solutions exist:
- Put UsePAM no into /etc/ssh/sshd_config and use the chroot patch and /./ in users homedirs
- Keep UsePAM yes. Emerge sys-auth/pam_chroot and add session required pam_chroot.so to /etc/pamd.d/sshd setup /etc/security/chroot.conf or add a chroot_dir=/home/username/ to the pam_chroot.so line.
This will currently not work for amd64 though as the Gentoo bug regarding pam_chroot has not cought any attention from the arch testers. Since July...
Bugging the arch testers in #Gentoo-amd64 didn't help either:Continue reading "SSHd chroot and PAM"