I've got a server and I've set up two different domains (a.com and b.com) to point to its IP. I've generated a key pair on my local machine and put the public key in my .ssh/authorized_keys file on the server. With all this in place, I am able to log into the server with this line 'ssh user@a.com' with no password prompt. so far so good.
Then I try to login like this 'ssh user@b.com', but am getting prompted for a password. what is going on here? why can't I get in without the password prompt like I can with a.com? It should be using the same key pair to authenticate. I've triple checked that both a.com and b.com point to the same IP.
thank you so much for any help!
-telepathetic
p.s. I was asked to accept and did accept the fingerprints given for a.com and b.com on my ssh attempts, so both are in my known_hosts file, and I am no longer prompted about that. I'm assuming that has nothing to do with my problem however. Just mentioning it in case you were wondering.
Bookmarks