Linux/Windows ssh设置代理
设置方法
- 编辑home目录下的
.ssh/config
文件 - 在最后加入以下内容
Host *
Compression yes
ServerAliveInterval 20
ProxyCommand nc -X 5 -x 127.0.0.1:7890 %h %p
- windwos则是以下配置
Host *
Compression yes
ServerAliveInterval 20
ProxyCommand "C:\Program Files\Git\mingw64\bin\connect.exe" -S 127.0.0.1:7890 %h %p
-X 5
表示socks5代理
评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果