cancel
Showing results for 
Search instead for 
Did you mean: 

vsftpd - ftp only usage

MikeL_4
Super Advisor

vsftpd - ftp only usage

We have set up a user id for a client to ftp files to our server which runs vsftpd as the ftp daemon...

Is there a way to prevent the client from using this id for doing an ssh into the server ??
2 REPLIES
MikeL_4
Super Advisor

Re: vsftpd - ftp only usage

/sbin/nologin worked...
J. Maestre
Honored Contributor

Re: vsftpd - ftp only usage

Use the DenyUsers directive in /etc/ssh/sshd_config

DenyUsers username

If you also want to prevent any kind of shell access setting /bin/false as shell for that user, be aware that vsftpd uses PAM for login and won't accept any shell that's not listed in /etc/shells (you would get an "incorrect login" message).