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. |
Look at AllowUsers in man sshd_config.
eg AllowUsers *@192.168.1.* user1@* user2@192.168.2.1 |
Thanks I will try this out...
|
All times are GMT -5. The time now is 03:18 AM. |