SSH: one user logs in, other don't

Posted by Co Lega on Server Fault See other posts from Server Fault or by Co Lega
Published on 2012-03-26T16:58:29Z Indexed on 2012/03/26 17:32 UTC
Read the original article Hit count: 238

Filed under:
|

Some users can ssh correctly, others don't. I have an admin user, which is in wheel. I used vsftpd for allowing FTP. I created a nologin user for FTP. Call this user "ftpuser". Now I want to allow sftp. It allows me to connect using admin user. I remove the nologin, by giving the user a shell via usermod -s /bin/bash ftpuser. It still doesn't allow me to connect from the ftpuser via sftp. The content of /home/ftpuser/.ssh is just the known_hosts file which contains "localhost" entry only.

User permissions are (in theory) ok:

ls -la /home
    working (admin)     : drwx------ 18 admin  admin 4096 Feb  6 15:33 admin
    non-working(ftpuser): drwx------  3 ftpuser ftp   4096 Mar 26 15:25 ftpuser

I haven't configured anything special on openssh. Does the ftpuser need anything extra than shell to enter via ssh?

© Server Fault or respective owner

Related posts about ssh

Related posts about sftp