个人技术空间关于本站

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

CreateBy:2017-03-13,UpdateBy:2017-03-13

评论

还没有评论,欢迎第一个留言。
← 请输入您的姓名
← 请输入常用邮箱(不会公开)
← 请输入个人网站(可选)
← 请输入评论内容,文明交流
← 请先完成人机验证