1

I've just set up a second vps (s2.example.com) and when trying to restart SSH I'm getting the following error:

"The authenticity of host 'restart (xxx.xxx.xxx.74)' can't be established."

The IP address (ending .74) is not the IP address of that server. It is the IP address of another vps running at www.example.com.

I've set an A record for s2 to point to the correct IP address for that server.

Any ideas what I'm doing wrong?

Thanks

5
  • BTW pinging s2.example.com shows the correct IP address
    – DavidM
    Nov 12, 2012 at 14:37
  • 2
    What's the command you're running? Nov 12, 2012 at 14:40
  • @Dennis: ssh restart
    – DavidM
    Nov 12, 2012 at 14:52
  • I think @MadHatter is on the right track, I've got a wildard in the zonefile so 'restart' would translate to the IP of the server at www
    – DavidM
    Nov 12, 2012 at 15:22
  • service ssh restart did the trick
    – DavidM
    Nov 12, 2012 at 15:36

1 Answer 1

3

Try service sshd restart! ssh restart is an instruction to make an ssh connection to the host called restart (hence the error message).

And while I'm turning this into an actual answer, may I put in a plea - not just to you, DavidM, but to anyone who asks a question on SF - to post as much detail as they can about what they did, not just what they were trying to do. Dennis' question cracked this one wide-open, but he should never have had to ask it. I highly recommend the accepted answer to this meta question to anyone thinking of asking a question on SF.

2
  • Sorry I'm a n00b here. Thought I'd added as much as anyone would need with 'trying to restart ssh' but I guess that's vague!
    – DavidM
    Nov 12, 2012 at 15:34
  • We totally got what you were trying to do, that bit was excellent. The problem lay in how you were trying to do it. A post that said "I tried to restart the ssh service with ssh restart but I only got the following error message..." would have saved a whole half-hour. Does that make sense?
    – MadHatter
    Nov 12, 2012 at 15:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .