I need to give a specific user sftp access to a specific folder. I've followed the direction in this article:
http://library.linode.com/security/sftp-jails
When I try to connect with the SFTP remote client the user is authenticated and the SSH session is established but immediately the server closes the connection. The connection for the "root" user works just fine.
The folder has CHMOD 777. The user is in group filetransfer and his home folder is marked as the appropriate folder in /etc/passwd ->
jason:x:1000:1000:Jason Hanna,,,:/srv/www/domainname:/bin/bash
I do not want that user to own the folder but I think the user should have access to the folder and files via "other" permission which is set.
Any idea why the server is closing the connection?
From SFTP client:
[12:22:58] Server supported authentications: publickey,password
[12:22:58] Authentication request. Method: password
[12:22:58] User authentication successful.
[12:22:58] SSH session established.
[12:22:58] Connected to 173.255.---.---.
[12:22:58] Detected Server Software: OpenSSH
[12:22:58] Opening channel 0.
[12:22:58] Server closed connection