Skip to content

Instantly share code, notes, and snippets.

@kirkins
Last active November 15, 2017 18:08
Show Gist options
  • Save kirkins/5ba962ea85f1bf186e18c2a02ca097bc to your computer and use it in GitHub Desktop.
Save kirkins/5ba962ea85f1bf186e18c2a02ca097bc to your computer and use it in GitHub Desktop.
Script that will try ssh until is succeeds
tryssh()
{
until ssh $1; do
sleep 5
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment