当前位置:网站首页>【运维】ssh tunneling 依靠ssh的22端口实现访问远程服务器的接口服务
【运维】ssh tunneling 依靠ssh的22端口实现访问远程服务器的接口服务
2022-07-23 11:10:00 【XD742971636】
在阿里云远程Linux的服务器只开通了22端口还不能开别的端口,我在Linux开个7001的接口服务后,我在本地windows系统能够通过22端口访问到这个7001接口服务吗?
可以。
最快的方式是使用mobaxterm:
这样就完事了:
windwos上代码:
requests.post(url="http://127.0.0.1:7001/analyseImageBytes")
相当于是我访问了windows的7001端口,然后moba给我转到了ssh server上,并且ssh server其实就是跳板机,能访问到7001,直接就建立起windows到ssh server的7001连接了。学废了吧!
边栏推荐
- Completely uninstall MySQL in centos7
- idea一次启动多个项目
- Deep understanding of L1 and L2 regularization
- 第二篇 如何设计一个RBAC权限系统
- it 农民工的现状和历史
- C语言经典例题-贷款余额
- go : gin Urlencoded 格式
- bgp选路原则
- Safety 7.18 operation
- [pyGame actual combat] aircraft shooting masterpiece: fierce battle in the universe is imminent... This super classic shooting game should also be taken out and restarted~
猜你喜欢
随机推荐
C语言书写规范
作为测试人员,不能不懂的adb命令和操作
OPNsense – 多功能高可靠易使用的防火墙(二)
Jsd-2204 session management filter day19
修改ssh命令行[[email protected]]#颜色
7.13WEB安全作业
Exploration and practice of Ali multimodal knowledge atlas
MySQL执行顺序
自定义封装弹出框(带进度条)
VMware virtual machine download, installation and use tutorial
day1
用rpm -e --nodeps进行批量删除
it 农民工的现状和历史
BGP联邦实验
BGP routing principle
Find the source code of the thesis
C语言经典例题-逆序打印输入的两位数
Analysis of data governance
aws篇4 一机一密
Application of ERP management system in equipment manufacturing enterprise management









