当前位置:网站首页>xshell开启ssh端口转发,通过公网机器访问内网机器
xshell开启ssh端口转发,通过公网机器访问内网机器
2022-08-03 06:44:00 【qq_duhai】
一、开启ssh转发
配置1:
[[email protected] ~]#vi /etc/ssh/sshd_config
修改内容:
AllowTcpForwarding yes
GatewayPorts yes
生效:
[[email protected] ~]#/etc/rc.d/init.d/sshd restart
配置2:
[[email protected] ~]vi /etc/sysctl.conf
修改内容:
net.ipv4.ip_forward = 1
生效:
[[email protected] ~]sudo sysctl -p 或 /sbin/sysctl -e -p /etc/sysctl.conf
二、配置公网服务器代理
三、配置内网服务器
四、结果
五、开启内网服务器隧道
六、外面电脑访问内网电脑服务
边栏推荐
- information_schema
- 信息学奥赛一本通T1452:Keyboarding
- [机缘参悟-59]:《素书》-6-安于礼仪[安礼章第六]
- ORB-SLAM2提取特征点
- pt-online-schema-change工具使用的一次
- El - tree set using setCheckedNodessetCheckedKeys default check nodes, and a new check through setChecked specified node
- qt学习之旅--MinGW编译FFmpeg(32bit)
- 帆软11版本参数联动为null查询全部
- REST学习
- Data warehouse buried point system and attribution practice
猜你喜欢
随机推荐
学会可视化大屏布局技巧,让领导都赞不绝口
MySQL - 视图操作
CISP-PTE Zhenti Demonstration
一文搞懂什么是@Component和@Bean注解以及如何使用
【多线程进阶】--- 常见锁策略,CAS,synchronized底层工作原理,JUC,线程安全的集合类,死锁
智能客服,还有多少AI泡沫?
- display image API OpenCV 】 【 imshow () to a depth (data type) at different image processing methods
Charles capture shows
solution MySQL - 触发器
剑指offer专项突击版第18天
El - tree set using setCheckedNodessetCheckedKeys default check nodes, and a new check through setChecked specified node
consul理解
阿里云-武林头条-建站小能手争霸赛
第六章:存储系统
qt学习之旅--MinGW编译FFmpeg(32bit)
安全狗云原生安全能力全面亮相全球数字经济大会暨ISC互联网安全大会
测试用例设计方法之因果图详解
keepalived安装部署
亿流量大考(1):日增上亿数据,把MySQL直接搞宕机了...
【着色器实现HandDrawn简笔画抖动效果_Shader效果第十二篇】