当前位置:网站首页>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
边栏推荐
- Practice of unified storage technology of oppo data Lake
- JS - implémenter la fonction de copie par clic
- Svn detailed use tutorial
- Explain TCP's three handshakes in detail
- 分享 20 个不容错过的 ES6 的技巧
- 8.2 text preprocessing
- js——实现点击复制功能
- For 22 years, you didn't know the file contained vulnerabilities?
- My raspberry PI zero 2W tossing notes record some problems encountered and solutions
- 8.5 concise implementation of cyclic neural network
猜你喜欢

22年了你还不知道文件包含漏洞?

8.5 concise implementation of cyclic neural network

The win10 taskbar notification area icon is missing

Brute force of DVWA low -- > High

Lotus DB design and Implementation - 1 Basic Concepts
![Detailed explanation of C language knowledge points -- first understanding of C language [1] - vs2022 debugging skills and code practice [1]](/img/07/c534238c2b5405bbe4655e51cfee51.png)
Detailed explanation of C language knowledge points -- first understanding of C language [1] - vs2022 debugging skills and code practice [1]
![Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]](/img/c6/5241de0d670da3dae136a3047c6160.jpg)
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]

Leetcode153 - find the minimum value in the rotation sort array - array - binary search

1 - first knowledge of go language

LeetCode167-两数之和II-双指针-二分-数组-查找
随机推荐
C language super complete learning route (collection allows you to avoid detours)
The life cycle of key value in redis module programming
Introduction to Arduino for esp8266 serial port function
C语言超全学习路线(收藏让你少走弯路)
8.5 concise implementation of cyclic neural network
Leetcode167 - sum of two numbers II - double pointer - bisection - array - Search
Do (local scope), initializer, memory conflict, swift pointer, inout, unsafepointer, unsafebitcast, success
PSYNC synchronization of redis source code analysis
1-初识Go语言
nuxt项目:全局获取process.env信息
JUC学习记录(2022.4.22)
Borui data and F5 jointly build the full data chain DNA of financial technology from code to user
[thymeleaf] handle null values and use safe operators
LeetCode149-直线上最多的点数-数学-哈希表
[untitled]
Fill in the next right node pointer II of each node [classical hierarchy traversal | regarded as linked list]
Go basic reflection
Advanced version of array simulation queue - ring queue (real queuing)
My raspberry PI zero 2W tossing notes record some problems encountered and solutions
January 1, 1990 is Monday. Define the function date_ to_ Week (year, month, day), which realizes the function of returning the day of the week after inputting the year, month and day, such as date_ to