I have Ubuntu 18.04 LTS with VSFTPD. I want to deny certain users from connection via SFTP to my server. So far I have only found Q&A (here on stackexchange and on the internet in general) regarding allowing certain users to connect and denying all others, but this is not suitable for me as I have too many users with allowed access and only few users are forbidden.

My question is: How can I deny connection to specific users in VSFTPD?


1 Answer 1


Enter the user name in /etc/vsftpd/ftpusers so that particular user will be denied for sftp or ftp connections.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .