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.
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.