LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Restrict login thru ssh? (https://www.linuxquestions.org/questions/linux-security-4/restrict-login-thru-ssh-671165/)

backroger 09-19-2008 10:55 PM

Restrict login thru ssh?
 
Hi Sir...

Is it possible to restrict loggin to ssh using his account & IP address on a remote?

Example 1: Access Granted for Megan remote console.

Ip address = 192.168.1.84 = true
ssh user = megan = true

Example 2: Access Denied for Megan remote console.

IP Address = 192.168.1.84 = true
ssh user = bill = false

Example 3: Access Denied for Bill remote console.

IP Address = 192.168.1.55 = false
ssh user = bill = true

Example 4: Access Denied for Bill remote console.

IP Address = 192.168.1.60 = true
ssh user = megan = false

Example 5: Access Granted for Bill remote console.

Ip address = 192.168.1.60 = true
ssh user = bill = true

Means ssh user is bind with the ip address?

Thanks in advance.

billymayday 09-19-2008 11:19 PM

Look at AllowUsers in man sshd_config.

eg

AllowUsers *@192.168.1.* user1@* user2@192.168.2.1

backroger 09-23-2008 01:15 AM

Thanks I will try this out...


All times are GMT -5. The time now is 03:18 AM.