Results 1 to 2 of 2

Thread: ssh with keys into two domains on one server

  1. #1
    Join Date
    Feb 2006
    Beans
    27

    ssh with keys into two domains on one server

    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.

  2. #2
    Join Date
    Feb 2006
    Beans
    27

    Re: ssh with keys into two domains on one server

    nevermind.

    I have no idea why, but it's working now.

    Best I can figure the IP coming back from the DNS was flopping around still, and I just got lucky with my manual nslookups? no idea.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •