And here is the output of sftp -v myserver, on the client side.
I am trying to get chroot to work with rssh for sftp. sftp works fine for users who use rssh as their shell, but only when chroot is not involved. If I uncomment chrootpath and set it to what should be a valid chroot path, sftp logins will terminate immediately after I enter the SFTP password.
If you know how to solve the above problem, great, but I'm more interested in getting some useful logs that will help me troubleshoot this problem. The only log entry that goes to the syslog is this one, which doesn't seem very interesting:
rssh: chroot cmd line: /usr/lib/rssh/rssh_chroot_helper 2 "/usr/lib/openssh/sftp-server"
My question is, how do I get rssh to produce a useful error here?
And here's some additional logging that I have, although I don't personally see much there.
And here's some additional logging that I have, although I don't personally see much value in either.
auth.log shows that the password was accepted, but that's about it.
Jul 17 14:23:41 myserver sshd: Accepted password for TEST_SFTP from 10.100.11.3 port 53593 ssh2
Jul 17 14:23:41 myserver sshd: pam_unix(sshd:session): session opened for user TEST_SFTP by (uid=0)
Jul 17 14:23:42 myserver sshd: subsystem request for sftp by user TEST_SFTP
Jul 17 14:23:42 myserver sshd: Received disconnect from 10.100.11.3
: 11: disconnected by user
Jul 17 14:23:42 myserver sshd: pam_unix(sshd:session): session closed for user TEST_SFTP