Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/2661dcb7f16f2fface6e to your computer and use it in GitHub Desktop.
Save mamemomonga/2661dcb7f16f2fface6e to your computer and use it in GitHub Desktop.
GitでProxyCommandを使う
#!/bin/sh
exec ssh -o 'ProxyCommand=ssh PFUSER@PFHOST -W %h:%p 2> /dev/null' "$@"
$ 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