ssh 代理 proxy socks5

ssh -Tv git@bitbucket.org -o "ProxyCommand=nc -X connect -x 127.0.0.1:1080 %h %p"

 

 

https://stackoverflow.com/questions/19161960/connect-with-ssh-through-a-proxy

Here's how to do Richard Christensen's answer as a one-liner, no file editing required (replace capitalized with your own settings, PROXYPORT is frequently 80):

 ssh USER@FINAL_DEST -o "ProxyCommand=nc -X connect -x PROXYHOST:PROXYPORT %h %p"

You can use the same -o ... option for scp as well, see my superuser answer.

posted @ 2022-08-07 23:29  imoon22  阅读(197)  评论(0编辑  收藏  举报