In /etc/ssh/sshd_config if I use this line, passwordless login works as intended:
Code:
# Authentication:
PermitRootLogin yes
AllowUsers root@*
But if I change it to this (which is what I want for better security), the login is not permitted. (It asks for a password, and no root password exists.)
Code:
# Authentication:
PermitRootLogin yes
AllowUsers root@192.168.100.101
The client has this IP address:
Code:
$ ifconfig
eth1 Link encap:Ethernet HWaddr xxxxxxxxxxxxxx
inet addr:192.168.100.101
and eth1 is the active interface.
So why does the login not work when I specify the IP address that is allowed, but it does work when I open it up to any IP addresses?
How would you trouble shoot this? Which log should I look in to find the IP address that is attempting to log in?