Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making users an FTP account on some remote servers, but i don't want them to have access to SSH, only FTP.

How is this possible on Ubuntu, running pureftpd?


share|improve this question
up vote 1 down vote accepted

Edit the file /etc/ssh/sshd_config and add the directive DenyUsers user1 user2 .... Alternatively, if all the users who shouldn't have SSH access are part of the same group (say ftpusers) you can use DenyGroups ftpusers. Then restart sshd with /etc/init.d/sshd restart

share|improve this answer

Use virtualusers, which in ftp lingo is a ftp user that does not have a shell account. This is far better than trying to deny ssh on a per-user basis.

some guide i googled

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.