1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| $ touch config
linux:
Host github.com HostName github.com User bigsuperangel PreferredAuthentications publickey IdentityFile ~/.ssh/github ProxyCommand nc -v -x 127.0.0.1:1080 %h %p
window:
Host git.oschina.net HostName git.oschina.net PreferredAuthentications publickey User bigsuperyu IdentityFile ~/.ssh/id_rsa
Host github.com HostName github.com User bigsuperangel PreferredAuthentications publickey IdentityFile ~/.ssh/github-rsa ProxyCommand connect -H 127.0.0.1:1080 %h %p
|