View previous topic :: View next topic |
Author |
Message |
Bastian9175 n00b
Joined: 11 Dec 2002 Posts: 29
|
Posted: Tue Jan 14, 2003 2:57 am Post subject: ssh user restrictions |
|
|
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 |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jan 14, 2003 3:15 am Post subject: |
|
|
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 |
|
|
Bastian9175 n00b
Joined: 11 Dec 2002 Posts: 29
|
Posted: Tue Jan 14, 2003 3:20 am Post subject: |
|
|
i thing login.conf and it didn`t work |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jan 14, 2003 3:21 am Post subject: |
|
|
sshd_config works.
Bastian9175 wrote: | i thing login.conf and it didn`t work |
|
|
Back to top |
|
|
Bastian9175 n00b
Joined: 11 Dec 2002 Posts: 29
|
Posted: Tue Jan 14, 2003 3:28 am Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jan 14, 2003 3:32 am Post subject: |
|
|
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 |
|
|
Bastian9175 n00b
Joined: 11 Dec 2002 Posts: 29
|
Posted: Tue Jan 14, 2003 3:37 am Post subject: |
|
|
Thnx
It`s working |
|
Back to top |
|
|
|