Created
November 11, 2013 17:57
-
-
Save sneak/7417381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host *.docker | |
User root | |
ProxyCommand ssh -T [email protected] 'dockerssh %h' 2> /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST=$(echo $1 | awk -F. '{print $1}') | |
PORT=$(docker port $HOST 22 | awk -F: '{print $2}') | |
exec nc 127.0.0.1 $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment