Last active
August 29, 2015 14:12
-
-
Save mamemomonga/2661dcb7f16f2fface6e to your computer and use it in GitHub Desktop.
GitでProxyCommandを使う
This file contains hidden or 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/sh | |
exec ssh -o 'ProxyCommand=ssh PFUSER@PFHOST -W %h:%p 2> /dev/null' "$@" |
This file contains hidden or 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
$ export GIT_SSH='ssh_proxy_command.sh' | |
$ ssh remote add .... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment