当前位置:网站首页>SSH connects to the remote host through the springboard machine
SSH connects to the remote host through the springboard machine
2022-04-23 15:05:00 【Shibao】
There are two ways to choose , Include ProxyJump and ProxyCommand .
ProxyJump It is in the form of port forwarding , The springboard machine is required to support port forwarding .
ProxyCommand It's through SSH Protocol forwarding
In terms of security ,ProxyJump It's higher , Because it's end-to-end encryption , The springboard machine only does forwarding through transmission , Maybe the performance is also good .
Here are two examples , This includes transit through multiple springboards and login with certificates ,Host1 The certificate of the local user has been preset ( This is also the usual way ), By modifying the profile .ssh/config Realization :
Host Host1
HostName 192.168.0.1
Port 22
User yourusername
Host Host2
HostName 192.168.0.2
Port 22
User yourusername
IdentityFile ~/xxx.pem
ProxyJump Host1
Host Host3
HostName 192.168.0.3
Port 22
User yourusername
IdentityFile ~/xxx.pem
ProxyJump Host2
Host Host1
HostName 192.168.0.1
Port 22
User yourusername
Host Host2
HostName 192.168.0.2
Port 22
User yourusername
IdentityFile ~/xxx.pem
ProxyCommand ssh Host1 -W %h:%p
Host Host3
HostName 192.168.0.3
Port 22
User yourusername
IdentityFile ~/xxx.pem
ProxyCommand ssh Host2 -W %h:%p
版权声明
本文为[Shibao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231408547389.html
边栏推荐
- LeetCode167-两数之和II-双指针-二分-数组-查找
- What is the main purpose of PCIe X1 slot?
- 分享3个使用工具,在家剪辑5个作品挣了400多
- Llvm - generate local variables
- My raspberry PI zero 2W tossing notes record some problems encountered and solutions
- 1-初识Go语言
- Flink datastream type system typeinformation
- OPPO数据湖统一存储技术实践
- Have you learned the basic operation of circular queue?
- Thinkphp5 + data large screen display effect
猜你喜欢
如何设计一个良好的API接口?
UML learning_ Day2
How to use OCR in 5 minutes
Swift protocol Association object resource name management multithreading GCD delay once
eolink 如何助力远程办公
Leetcode exercise - 396 Rotation function
LeetCode149-直线上最多的点数-数学-哈希表
Advanced version of array simulation queue - ring queue (real queuing)
Redis主从同步
Leetcode167 - sum of two numbers II - double pointer - bisection - array - Search
随机推荐
Unity_ Code mode add binding button click event
【thymeleaf】处理空值和使用安全操作符
[stc8g2k64s4] introduction of comparator and sample program of comparator power down detection
Have you really learned the operation of sequence table?
1n5408-asemi rectifier diode
你还不知道责任链模式的使用场景吗?
asp. Net method of sending mail using mailmessage
js——實現點擊複制功能
thinkphp5+数据大屏展示效果
Daily question - leetcode396 - rotation function - recursion
C language super complete learning route (collection allows you to avoid detours)
大文件如何快速上传?
OPPO数据湖统一存储技术实践
Flink DataStream 类型系统 TypeInformation
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]
Leetcode153 - find the minimum value in the rotation sort array - array - binary search
We reference My97DatePicker to realize the use of time plug-in
小红书 timestamp2 (2022/04/22)
[untitled]
Swift protocol Association object resource name management multithreading GCD delay once