he-sb / tech

My blog related to technique.
MIT License
9 stars 2 forks source link

通过代理连接 SSH #35

Closed he-sb closed 4 years ago

he-sb commented 4 years ago

参考链接:

  1. 通过 Socks5 代理进行 SSH 连接 - PRIN BLOG

  2. Windows 下配置 SSH 走 Shadowsocks 代理 – 兴趣使然的博客

  3. ssh怎样通过代理登录远程主机 | Bruce's Blog

he-sb commented 4 years ago

Windows 系统

使用 connect ,下载地址:https://bitbucket.org/gotoh/connect/downloads

Linux 系统

使用 nc

he-sb commented 3 years ago

Linux 还可以使用 socat 来连接 http 代理,SSH 配置中增加一行:

...
    ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=1081
...

macOS 给 Git(Github) 设置代理(HTTP/SSH)