Skip to content

Instantly share code, notes, and snippets.

@abdullahkhilji
Created December 5, 2019 13:13
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 abdullahkhilji/8cb19278bc75efaa206ee417714e5058 to your computer and use it in GitHub Desktop.
Save abdullahkhilji/8cb19278bc75efaa206ee417714e5058 to your computer and use it in GitHub Desktop.
config ssh proxy
Host github.com
AddKeysToAgent yes
Hostname ssh.github.com
PreferredAuthentications publickey
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
User git
Port 443
proxycommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8080
Host gitlab.com
AddKeysToAgent yes
Hostname altssh.gitlab.com
PreferredAuthentications publickey
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
User git
Port 443
Host bitbucket.org
AddKeysToAgent yes
Hostname altssh.bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
User git
Port 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment