Alright, I just setup a new Ubuntu 12.04 LTS server with a LAMP stack + Including OpenSSH server.
This users directory is located...
Where the name of the user is testCode:/var/www/vhosts/test.com/
I created this user via...
Now I also changed the users shell to bash after i realized that it was defaulted to sh.Code:useradd test passwd test
Once I had setup ssh and the users home directory I then tried to sftp in with the users creds to no avail. (I have confirmed SFTP does work for root)
So my question is how can I activate sftp for this user?
I just checked the auth.log and found the following
Further research as uncovered the following thread on another site...Code:Jan 12 00:44:26 TC1 sshd[4814]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key Jan 12 00:44:26 TC1 sshd[4814]: Accepted password for TEST from XX.XX.XXX.XXX port 60247 ssh2 Jan 12 00:44:26 TC1 sshd[4814]: pam_unix(sshd:session): session opened for user TEST by (uid=0) Jan 12 00:44:27 TC1 sshd[4826]: subsystem request for sftp by user TEST Jan 12 00:44:27 TC1 sshd[4814]: pam_unix(sshd:session): session closed for user TEST
http://www.unix.com/linux/161311-use...my-server.html
After I too tried to manually run the sftp-server I get the following error
ls -l of /dev/null showsCode:Couldn't open /dev/null: Permission denied
I am wary to change anything until i get confirmation that this indeed is the issue as the above link suggestsCode:crw------- 1 root root 1, 3 Jan 8 14:40 /dev/null



Reply With Quote

Bookmarks