Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks.

share|improve this question

2 Answers 2

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

 
discard

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.