Can't star SSH on Ubuntu 12.10 AWS EC2

Posted by Conor H on Server Fault See other posts from Server Fault or by Conor H
Published on 2012-06-04T16:27:53Z Indexed on 2012/06/04 16:45 UTC
Read the original article Hit count: 327

So i've just started playing around with Ubuntu on Amazon EC2.

I've just issued the following command to restart ssh but it has now "killed" ssh.

sudo /etc/init.d/ssh restart

I can't seem to ssh to this instance anymore. Putty just gives me "connection refused".

NOTE: In this case I just restarted SSH to see the result. I didn't change any settings. This was to confirm that it was the restart command was the problem and not any configs I made.

What is the correct way to restart SSH? P.S. That usually works on other Ubuntu boxes.

Thanks.

EDIT: It is also worth noting that when I ran that command I was taken straight back to a prompt. I didn't get any output on the console.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about ssh