ssh隧道
ssh隧道常用参数
1 | -C:压缩传输,提高传输速度 |
远程端口转发
ssh -NfR remote-ip:remote-port:localhost:local-port [email protected]
远程sshd_config需要设置
AllowTcpForwarding yes
GatewayPorts yes
socks代理
ssh -NfD [localhost]:port [email protected]
先在本地实现socks代理,再将socks代理端口通过隧道连接到公网
ssh -NfR remote-ip:remote-port:localhost:socks-port [email protected]
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 f4l1k_blog!
评论