Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh user restrictions
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
Bastian9175
n00b
n00b


Joined: 11 Dec 2002
Posts: 29

PostPosted: Tue Jan 14, 2003 2:57 am    Post subject: ssh user restrictions Reply with quote

Can I permit users group to connect thought ssh from defined domain ar or. I don`t want to use firewall

Thanx
Back to top
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Tue Jan 14, 2003 3:07 am    Post subject: Reply with quote

I don't mean to bg you, but that's what firewalls are for...
:lol:
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 3:15 am    Post subject: Reply with quote

You can use the "AllowUsers" directive in /etc/ssh/sshd_config to restrict access to specific users/domains. man sshd_config for more detail. Remember to do "/etc/init.d/sshd restart" to let your changes take effect.
Back to top
View user's profile Send private message
Bastian9175
n00b
n00b


Joined: 11 Dec 2002
Posts: 29

PostPosted: Tue Jan 14, 2003 3:20 am    Post subject: Reply with quote

i thing login.conf and it didn`t work
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 3:21 am    Post subject: Reply with quote

sshd_config works.
Bastian9175 wrote:
i thing login.conf and it didn`t work
Back to top
View user's profile Send private message
Bastian9175
n00b
n00b


Joined: 11 Dec 2002
Posts: 29

PostPosted: Tue Jan 14, 2003 3:28 am    Post subject: Reply with quote

can U give a expamle
my situation is
user xxx logging only from .xxx.sk domain
and yyy logging only from xx.xx.xx.xx ip adress
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 3:32 am    Post subject: Reply with quote

Code:

AllowUsers xxx@*.xxx.sk yyy@xx.xx.xx.xx

I have only used the ip address form till now though.
Bastian9175 wrote:
can U give a expamle
my situation is
user xxx logging only from .xxx.sk domain
and yyy logging only from xx.xx.xx.xx ip adress
Back to top
View user's profile Send private message
Bastian9175
n00b
n00b


Joined: 11 Dec 2002
Posts: 29

PostPosted: Tue Jan 14, 2003 3:37 am    Post subject: Reply with quote

Thnx
It`s working
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