an00/an00.github.io

SSH 隧道

Opened this issue · 0 comments

an00 commented

https://blog.an00.cn/2018/04/27/SSH%E9%9A%A7%E9%81%93/

SSH 隧道 对端ip的端口映射到本机; 本机的端口映射到对端,这时通常做内网穿透。 SSH命令行 重要:netstat 查看端口,若最外层主机只监听 127.0.0.1 则修改 sshd_config ,打开 GatewayPorts yes 远程转发:本机监听的端口映射到对端机器 1234# ssh -R remote_port:local_ip:port [remote]# 将本地服