![]() ![]() ![]() [This is probably not the cause, according to Support for the ChrootDirectory keyword was added to openSSHĬheck that at least that version is installed: dpkg -list openssh-server Your setup definitely looks good, let's see if we can find out where the problem is.Ĭheck that your openSSH version supports ChrootDirectory: I couldn't get it to work, even after contacting the OpenSSH mailinglist, so I decided to reset my entire server (which was a viable option, fortunately). sshd: pam_unix(sshd:session): session closed for user samĬyberduck says Unexpected end of sftp stream. sshd: pam_unix(sshd:session): session opened for user sam by (uid=0) The session is created, but also closed immediately: Sep 24 12:55:15. I restarted ssh and now sam can't log in with SFTP. I changed the permissions for sam's home folder: $ ls -la /home/samĭrwxr-xr-x 11 root root 4096 Sep 23 16:12. I added sam to the users group: $groups sam I changed /etc/ssh/sshd_config like this (at the bottom of the file): #Subsystem sftp /usr/lib/openssh/sftp-server According to all the articles out there this should work, but apparently I'm still doing something wrong. ![]()
0 Comments
Leave a Reply. |