ssh - Wait for linux machine to be rebooted - Super User
$ while ! ssh ${remote_ip} sleep 1 &>/dev/null; do sleep 1; done
このページの著者: takanotume24