Linux:外网连接服务器
Release1.0
step 01 ssh 连接公网服务器
ip 47.95.233.183: 22 default port 22
username root
password *********
step 02 反向连接内网
ssh wvdon@localhost -p1234username :wvdon port 1234
Are you sure you want to continue connecting (yes/no)? yespassword
*******
Release2.0
解决经常中断问题
Step 01 (同上)
Step 02
ssh wvdon@localhost -p 22001password
******
增加了监听端口,来达到连接稳定
方法
内网 a
外网 b
a内网主机添加秘钥实现免登陆
ssh-keygen -t rsa -C "mail@wvdon.com"
Linux外网稳定连接内网服务器

本文介绍如何通过SSH实现从外网稳定地连接到内网服务器,包括使用autossh进行连接保持、配置免密登录及监听端口,确保连接的稳定性。
最低0.47元/天 解锁文章
3844

被折叠的 条评论
为什么被折叠?



