Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active September 20, 2019 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/5374269eac304db9276c56eb0f88e7b2 to your computer and use it in GitHub Desktop.
Save mamemomonga/5374269eac304db9276c56eb0f88e7b2 to your computer and use it in GitHub Desktop.
サーバが起動して SSHが有効になるまで待つ

サーバが起動して SSHが有効になるまで待つ

while ! ssh -o 'ConnectTimeout=1' user@host true; do
	sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment