Why does rebooting a server running Ubuntu 14.04 give me 'Connection refused' errors?
ssh: connect to host <IP-address-here> port 22: Connection refused but only for 14.04 and only after rebooting. I'm using 12.04 Desktop at home. How do I troubleshoot this?
To make the question clearer, here's what does or does not work for me:
- SSH into a fresh install of 12.04 > logout > SSH in again > works
- SSH into a fresh install of 12.04 > reboot > SSH in again > works
- SSH into a fresh install of 14.04 > logout > SSH in again > works
- SSH into a fresh install of 14.04 > reboot > SSH in again > Connection refused
The problem I'm having is unique to 14.04, and only happens after rebooting. I have several servers running 12.04 prior to this and everything still works perfectly. I've got a new server I want to use 14.04 on and I want to understand what is going wrong. Any suggestions?
Here's what I've tried so far:
sudo traceroute -p 22 -T <IP-address-here>
Traceroute works fine, I get a response from the server on SSH port 22.
initctl list ... ssh start/running, process 23371 ...
Looks like ssh on the 14.04 server is set to start at boot (as expected).
tom@Desktop:~$ ssh -vvv root@<IP-address-here> OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to <IP-address-here> [<IP-address-here>] port 22. debug1: connect to address <IP-address-here> port 22: Connection refused ssh: connect to host <IP-address-here> port 22: Connection refused
Edit: Here is the entire syslog from a freshly created machine. I created it, SSH'd in & issued
reboot now command, then got a connection refused error after waiting for it to reboot and trying to SSH in the second time. Hard reboot via hosting control panel and now SSH connection works again.