// e.g. ssh 1.2.3.4, will probe until server is ready, useful when waiting for reboot | |
sp() | |
{ | |
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