作者在 2020-06-29 16:42:18 发布以下内容
ssh -fND localhost:1080 username@host.com
ssh -fND localhost:1080 username@host.com
ssh登录的时候使用代理:
vi ~/.ssh/config
Host www
HostName 123.123.123.123
Port 22
User root
ProxyCommand connect -S 127.0.0.1:1080 %h %p # git bash on windows
# ProxyCommand nc -x 127.0.0.1:1080 %h %p # linux