Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
BTW pinging s2.example.com shows the correct IP address –  DavidM Nov 12 '12 at 14:37
2  
What's the command you're running? –  Dennis Kaarsemaker Nov 12 '12 at 14:40
    
@Dennis: ssh restart –  DavidM Nov 12 '12 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 '12 at 15:22
    
service ssh restart did the trick –  DavidM Nov 12 '12 at 15:36

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.