After init 1, the ssh connexion on a remote server was interrupted with the following error packet_write_wait: Connection to UNKNOWN port 0: Broken pipeNow, even root cannot connect$ ssh root@remoteserverssh: connect to host remoteserver port 22: Connection refusedIs there any way to recover a ssh connexion?
Recover ssh connexion after init 1
ssh;remote;init
Switching to runlevel 1 kills all processes (except the top-level init/upstart command itself), including the SSH daemon.From http://www.debianadmin.com/debian-and-ubuntu-linux-run-levels.html:Run Level 1 is known as single user' mode. A more apt description would be rescue', or trouble-shooting' mode. In run level 1, no daemons (services) are started. Hopefully single user mode will allow you to fix whatever made the transition to rescue mode necessary.The easiest way to get sshd running is to switch to a runlevel that starts it by default.  In Ubuntu, that's any of 2, 3, 4 and 5.If you can't access the single-user shell to enter the init or telinit command, eg. because you were connected remotely, or it's hidden by the splash screen, then you're out of luck.  The only option left is to reboot.