Operating System - Linux
1753835 Members
7884 Online
108806 Solutions
New Discussion юеВ

Re: 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 2
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).