Skip to content

Instantly share code, notes, and snippets.

@luksa
Created May 13, 2014 20:42
Show Gist options
  • Save luksa/aff591f72d679b0a059b to your computer and use it in GitHub Desktop.
Save luksa/aff591f72d679b0a059b to your computer and use it in GitHub Desktop.
#/bin/sh
echo ssh-ing to docker container $1 \(port `docker port $1 22 | sed 's/.*://'`\)
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PreferredAuthentications=password fabric8@localhost -p `docker port $1 22 | sed 's/.*://'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment