当前位置:网站首页>【运维】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连接了。学废了吧!
边栏推荐
- [hiflow] regularly send Tencent cloud SMS sending group
- C# 关闭当前电脑指令
- Solve the problem that kotlin writes the Android project compilation report execution failed for task ': app:kaptdebugkotlin'. Exception
- What is the difference between server hosting and virtual host
- Redis bloom filter
- Part II how to design an RBAC authority system
- Redis的过期策略以及内存淘汰机制,Key过期了为什么没释放内存
- The official redis visualization tool is coming. The needle doesn't poke
- [heuristic divide and conquer] the inverse idea of heuristic merging
- C语言经典例题-逆序打印输入的两位数
猜你喜欢

xlswriter - excel导出

Skills to learn before going to primary school
![[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.](/img/ba/a174c5daccef7a6ea72c11dad8601d.png)
[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.

Les raccourcis clavier liés à l'onglet ne peuvent pas être utilisés après la mise à jour du vscode

The landing process of 800V high-voltage fast charging was accelerated, and Junsheng Electronics was designated for the 500million euro project

适用于顺序磁盘访问的1分钟法则

Batch deletion with RPM -e --nodeps

946. 验证栈序列 ●● & 剑指 Offer 31. 栈的压入、弹出序列 ●●
![[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~](/img/a3/087b1bc7445c53ddbd6d7334da51b9.png)
[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~

Time series data in industrial Internet of things
随机推荐
Deep understanding of L1 and L2 regularization
Chapter 4 use%rest API classes create rest services
VSCode 更新後與tab相關快捷鍵無法使用
Safe operation 7.22
C# 计算某个字符在字符串中出现的次数
[machine learning basics] unsupervised learning (5) -- generation model
[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.
Force buckle monotone stack
Find a specific number in an ordered array (binary search or half search)
C语言经典例题-求最少数量钞票
aws篇4 一机一密
[heuristic divide and conquer] the inverse idea of heuristic merging
PostgreSQL has no NVL solution. PostgreSQL queries all tables
Camera 手电筒修改
STL deque
946. 验证栈序列 ●● & 剑指 Offer 31. 栈的压入、弹出序列 ●●
Jsd-2204 session management filter day19
Solve the problem that kotlin writes the Android project compilation report execution failed for task ': app:kaptdebugkotlin'. Exception
it 农民工的现状和历史
可穿戴设备的自电容触摸控制器IT7259Q-13,IT7259EX-24