I'm running a student server in which all students are jailed in their respective folders.
Login in using scp gives no issues, except for when they try loging in with sftp.
I checked the logs, and it looks like sftp does it's job. The connection is established, credentials are checked, they are jailed into their folder. But then all of a sudden, pam closes the connection immediately with a session:closed entry.
Quote:
Aug 28 17:02:04 eduserv sshd[20432]: Accepted password for cfk from xx.xxx.xxx.xx port 64163 ssh2
Aug 28 17:02:04 eduserv sshd[20432]: pam_unix(sshd:session): session opened for user cfk by (uid=0)
Aug 28 17:02:04 eduserv sshd[20439]: subsystem request for sftp
Aug 28 17:02:04 eduserv jk_chrootsh[20440]: now entering jail /home/jail for user cfk (1000)
Aug 28 17:02:04 eduserv sshd[20432]: pam_unix(sshd:session): session closed for user cfk
|
Loging in with scp gives no such problem.