Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// e.g. ssh, will probe until server is ready, useful when waiting for reboot
echo "Probing..." ; (while ! nc -z -v -w1 $1 22 > /dev/null 2>&1 ; do :; done) ; echo "Connecting..."; ssh -o StrictHostKeyChecking=no "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.