当前位置:网站首页>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 二、配置公网服务器代理


三、配置内网服务器

四、结果

五、开启内网服务器隧道

六、外面电脑访问内网电脑服务

边栏推荐
猜你喜欢

加载properties文件,容器总结

2022用户画像构建

第一章:ARM公司Cortex-M 系列处理器介绍,第二章:嵌入式软件开发介绍和第三章:Cortex-M3和Cortex-M4处理器的一般介绍

How to choose a reliable and formal training institution for the exam in September?

El - tree set using setCheckedNodessetCheckedKeys default check nodes, and a new check through setChecked specified node

戳Web3的神话?戳到铁板。

(十五)51单片机——呼吸灯与直流电机调速(PWM)

【Shell】3万字图文讲解带你快速掌握shell脚本编程

在线开启gtid偶发hang住的问题解决

【着色器实现Glow可控局部发光效果_Shader效果第十三篇】
随机推荐
MySQL - 触发器
- display image API OpenCV 】 【 imshow () to a depth (data type) at different image processing methods
jvm 面试题
LiveData 记录下 +
excel高级绘图技巧100讲(二十一)- Excel层叠柱形图
第五章:指令集
word之图表目录中点号位置提升3磅
升级
关于任命韩文弢博士代理NOI科学委员会主席的公告
解决登录vCenter提示“当前网站安全证书不受信任“
STL - string
第六章:存储系统
【Shell】3万字图文讲解带你快速掌握shell脚本编程
RHCSA第四天
Multi-Head-Attention principle and code implementation
多线程可见
人脸检测和识别--face recognition包
《21天精通TypeScript-5》类型注解与原始类型
Nanny level explains Transformer
1066 Root of AVL Tree // AVL平衡二叉搜索树模板