Help - Search - Members - Calendar
Full Version: Restrict Ftp/ssh Access
Linuxhelp > Support > Technical Support
Termina
I'd like to restrict what accounts can connect to my computer via FTP (Proftpd) and SSH.

Thanks!
hughesjr
for SSH (and therefore SFTP), edit the file /etc/sshd_config and add the line(s):

AllowUsers user1 user2 user3 user4

AllowGroups group1 group2 group3

OR

DenyUsers user1 user2 user3 user4

DenyGroups group1 group2 group3 group4

then restart sshd (usually /etc/init.d/sshd restart)
hughesjr
in proftpd ... use:

AllowUser bob
AllowUser dave
AllowUser wendy


or

DenyUser bob
DenyUser dave
DenyUser wendy
Termina
Thank you much. smile.gif If I allow only one or two users, are all the rest automaticly denied access? (I'd assume so, just curious)
hughesjr
I think in both cases if you specify specific users, all other have no access ... or if you only want to deny a couple users, you can specifically deny them.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.