当前位置:网站首页>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
二、配置公网服务器代理
三、配置内网服务器
四、结果
五、开启内网服务器隧道
六、外面电脑访问内网电脑服务
边栏推荐
猜你喜欢
随机推荐
PostMan使用,访问路径@RequestMapping
Postman will return to the interface to generate a json file to the local
Detailed explanation of cause and effect diagram of test case design method
【图像边缘检测】基于matlab灰度图像的积累加权边缘检测【含Matlab源码 2010期】
酷雷曼上新6大功能,全景营销持续加码
word之图表目录中点号位置提升3磅
被数据分析重塑的5个行业
【Shell】3万字图文讲解带你快速掌握shell脚本编程
依赖注入(DI),自动配置,集合注入
关于任命韩文弢博士代理NOI科学委员会主席的公告
信息学奥赛一本通T1454:山峰和山谷
El - tree set using setCheckedNodessetCheckedKeys default check nodes, and a new check through setChecked specified node
Daily practice of PMP | Do not get lost in the exam-8.2 (including agility + multiple choice)
REST学习
RHCSA第四天
第五章:指令集
MySQL - 视图操作
pgaudit 的安装使用《postgresql》
c现代方法16章基础
数仓埋点体系与归因实践