Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved: Taking away SSH access to users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
durty_nacho
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 128
Location: Dallas

PostPosted: Wed Mar 07, 2007 3:35 pm    Post subject: Solved: Taking away SSH access to users Reply with quote

I have vsftpd installed and the way I allow users to connect is by creating local user accounts for them (I do not want to allow anon). This is fine and secure in the sense of FTP, they are jailed to their /home dir and all that, but how to I make sure they cannot ssh into my machine... since they have local accounts they can easily do this at the moment.

Last edited by durty_nacho on Wed Mar 07, 2007 3:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Mar 07, 2007 3:38 pm    Post subject: Reply with quote

in /etc/ssh/sshd_config, there is an option AllowUsers:
Code:
AllowUsers  david


now only david can login with ssh

you can do this with groups also

see
Code:
man sshd_config

_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
durty_nacho
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 128
Location: Dallas

PostPosted: Wed Mar 07, 2007 3:40 pm    Post subject: Reply with quote

thank you super thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum