SFTP jail works however now when I try to SSH it accepts my password and then just goes to a blank screen. Type any command and the shell session is closed (and putty closes) without error.
I've restarted openssh many times and also the server, just cant get this working!
I can provide the debug for the failed and also a working SSH into the box if you need, just ask.
Server: Debian 5.0.4
OpenSSH_5.1p1
sshd_config:
Subsystem sftp internal-sftp
UseLogin yes
Match user tom
ChrootDirectory /home/%u
ForceCommand internal-sftp
Read up on chroot. As soon as a process changes it's root directory, it can't access the files outside anymore. Shell, utilities, password file, ... are out of reach (invisible even). You'll have to set up a minimal environment yourself inside the chroot, mirroring that of a real system.
i cant seem to get past this "/bin/su : incorrect password" either... ive run the script as prescribed above, but no bananas... im using redhat btw if that counts for anything...and im sure the password is correct..