Rervese SSH配置公网ip地址+端口访问内网服务器(年代久远,归档)

Rervese SSH配置公网ip地址+端口访问内网服务器
公网IP: 47.88.1.101
ssh端口: 22
内网IP:192.168.110.235
 
1 )首先确保公网和内网都安装ssh服务(openssh-server)
2 )内网启动rerverse ssh服务
ssh -f -N -R 2210:localhost:22 username@47.88.1.101
3)在公网上面,执行命令:
ssh -P 2210 username@localhost
 
输入用户密码即可登录内网服务器110.235
 
参考:https://blog.devolutions.net/2017/3/what-is-reverse-ssh-port-forwarding
posted on 2026-09-13 21:46  DavidXu2014  阅读(5)  评论(0)    收藏  举报