Last active
October 11, 2020 16:43
-
-
Save oldthreefeng/a2e2846a0c3a647f54c2a83bc1a50669 to your computer and use it in GitHub Desktop.
ssh proxy github.com
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
## use ssh proxy github.com on linux/ubuntu/mac os/ windows . | |
# A highest way to get resource from github.com | |
A local host (git client),B is jumpserver(can fastest get resource from Github),C is Github host 。 | |
by using ssh forward ,A could tunnel B to get C,so we can fastest get resource from Github。 |
Use socks5 to proxy .
On mac / ubuntu / centos
$ cat ~/.ssh/config
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
ProxyCommand nc -v -X 5 -x 127.0.0.1:1080 %h %p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use ssh to proxy
on windows
tips: delete the comments with # in config
git config
On mac / Linux / Ubuntu /
git config
tips: delete the comments with # in config
In addtion . some ssh client do not support
-W
. you can use this command instead. by the way , window has nonc
. so, this is a linux way~