Oddbean new post about | logout
 Rebooted a server and want to ssh into it as soon as it comes back up?

while [[ 1 ]] ; do ssh some_server && break ; sleep 5 ; done

(This one is particularly useful when you can't ping the remote sever.)

#bash #Linux #ssh