I’m using bash shell and attempting to login to an Ubuntu box
Host remote.web.domain
Hostname 25.10.25.10
User remote user
IdentityFile ~/.ssh/id_rsa
ForwardAgent yes
IdentitiesOnly yes
When I try and SSH to the machine using an IP address, I get this error
$ ssh 25.10.25.10
[email protected]: Permission denied (publickey).
But oddly if I SSH using the domain name, I’m able to get in just fine
$ ssh remote.web.domain
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-149-generic x86_64)
What do I need to do, either server or client side, to allow SSH login using the IP address?