chianw877466657

/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  全国学渣代表  阅读(263)  评论(0编辑  收藏  举报

分类:

技术点:

相关文章:

  • 2021-08-29
  • 2021-08-30
  • 2021-08-20
  • 2021-12-16
  • 2019-08-25
  • 2021-12-05
  • 2021-11-28
  • 2020-02-02
猜你喜欢
  • 2021-04-10
  • 2021-04-07
  • 2021-09-09
  • 2021-12-05
  • 2021-05-19
  • 2021-08-29
相关资源
相似解决方案