Skip to content

Instantly share code, notes, and snippets.

@daicham
Last active December 3, 2024 04:10
Show Gist options
  • Save daicham/10253947 to your computer and use it in GitHub Desktop.
Save daicham/10253947 to your computer and use it in GitHub Desktop.
SSH config for connecting to github and bitbucket over proxy
ProxyCommand "C:\Program Files\git\bin\connect.exe" -H proxy.example.com:8080 %h %p
Host github.com
HostName ssh.github.com
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
@aparangement
Copy link

Thanks a lot man, it took me days until I found your post!
For people who might go through this in the future:
The 2nd hostname should be:
HostName altssh.bitbucket.org
instead of
bitbucket.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment