Skip to content

Instantly share code, notes, and snippets.

@stefanandres
Created May 27, 2015 08:12
Show Gist options
  • Select an option

  • Save stefanandres/6be4281c1c81bb53808d to your computer and use it in GitHub Desktop.

Select an option

Save stefanandres/6be4281c1c81bb53808d to your computer and use it in GitHub Desktop.
$ cat bin/gocloud
#!/bin/sh
export CLOUD_USER=$USER
until ssh -o UserKnownHostsFile=/dev/null \
-o StrictHostKeyChecking=no \
-o ForwardAgent=yes \
-o ConnectTimeout=3 \
-o User=root \
-o SendEnv=CLOUD_USER \
"$@"; do
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment