10

使用socks5连接ssh

 2 years ago
source link: https://garywu520.github.io/2022/04/01/%E4%BD%BF%E7%94%A8socks5%E8%BF%9E%E6%8E%A5ssh/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

使用socks5连接ssh

2022-04-01

字数统计: 66字

  |   阅读时长≈ 1分

如何使用socks5代理去连接远程SSH主机?

SSH Client —> NC —> Socks5 Proxy —> Remote SSH Server

命令行格式:
ssh -o ProxyCommand='/usr/bin/nc -X 5 -x 127.0.0.1:9158 %h %p' -i /xxx/xxx.key  -p 22 username@remote_hostname 

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK