Created
January 13, 2012 16:58
-
-
Save ericanderson/1607514 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 * | |
ServerAliveInterval 30 | |
ServerAliveCountMax 2 | |
ControlPath ~/.ssh/master-%r@%h:%p | |
ControlMaster auto |
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 | |
SSH_OPTIONS=" -MNf" | |
export AUTOSSH_GATETIME=0 | |
export AUTOSSH_PORT=0 | |
function makefast { | |
HOST=$1 | |
shift | |
ADDITIONAL_ARGS=$@ | |
CMD="autossh -M 0 -f -- $HOST $SSH_OPTIONS $ADDITIONAL_ARGS" | |
`$CMD` | |
} | |
makefast bamboo@bamboo | |
makefast gerrit | |
makefast jira |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment