今天我学了什么

ADoyle 的碎片化知识笔记。 博观而约取,厚积而薄发。

TagsRSSGithub

关系图谱

首页

❯

git

git ssh 代理

创建时间:2018/08/02更新时间:2018/08/0242 个字1分钟读完

.gitconfig 只能改走 http 和 https 协议的代理。
对于走 ssh 协议,要改的是 ~/.ssh/config。

Host github github.com *.github.com
Hostname github.com
User git
ProxyCommand=nc -X 5 -x localhost:1080 %h %p

参考 https://www.mikeheijmans.com/sysadmin/2014/08/12/proxy-ssh-over-socks/


关系图谱

Copyright 2016-Now ADoyle ([email protected]). All Rights Reserved. ADoyle 保留所有权力。
转载本站文字需要注明署名和来源链接。版权归 ADoyle 所有。如有违反,虽远必诛。
本站源码 adoyle-h/Today-I-Learned。觉得好请点个 Star。
若有意见或问题,请你发到讨论区,并遵守我的交流规约。