When you reboot a remote machine with sudo reboot now
for example, some machines come back up within :20 seconds. Others, it might take a minute or two. Well, instead of hitting up arrow, Enter and seeing:
ssh: connect to host server.example.com port 22: Connection timed out
Instead of using ssh user@host
, this function is sshw user@host
, as-in "SSH Wait". You'll see a message like this:
Waiting for SSH on [email protected]..............
And it will print a "." every second until the machine is available again, and then SSH's in.