个人技术空间

SSH加速github访问

首先要有一个跳板机,然后修改ssh的config文件

Alien@AlienHost: ~$cat ~/.ssh/config
# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
ProxyCommand ssh ssh_proxy@proxy.aliencn.net -W %h:%p 2>/dev/null

重点在于ProxyCommand的设置,设置完成后,SSH连接Github的时候,会把代理机器当作跳板加速访问

参考:https://wiki.centos.org/zh/TipsAndTricks/SshTips/JumpHost

版权声明:署名-非商业性使用-禁止演绎 3.0 未本地化版本 (CC BY-NC-ND 3.0)