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

DavidM
  • 13
  • 2

1 Answers1

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.

MadHatter
  • 78,442
  • 20
  • 178
  • 229
  • 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 '12 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 '12 at 15:41