全国学渣代表  

/etc/ssh/sshd_config GatewayPorts =yes
ssh -p 22 -qngfNTR "[::]:9988:192.168.220.4:22" root@192.168.220.3

9988 要代理内网192.168.220.4 22的端口号
192.168.220.3 主机ip
.请注意 绑定都所有网络接口 "[::]:70:localhost:8888" ,[::] 不能少,否则 只会绑定到 loopback 接口。

posted on 2020-08-05 10:12  全国学渣代表  阅读(360)  评论(0编辑  收藏  举报