SSH: one user logs in, other don't
- by Co Lega
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?