当前位置:网站首页>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
边栏推荐
- Advanced version of array simulation queue - ring queue (real queuing)
- go基础 反射
- Flink datastream type system typeinformation
- Explain TCP's three handshakes in detail
- win10 任务栏通知区图标不见了
- We reference My97DatePicker to realize the use of time plug-in
- Go basic reflection
- Tencent has written a few words, Ali has written them all for a month
- Tun equipment principle
- Tun model of flannel principle
猜你喜欢
Leetcode151 - invert words in string - String - simulation
Have you learned the basic operation of circular queue?
Share 20 tips for ES6 that should not be missed
Explanation and example application of the principle of logistic regression in machine learning
Borui data and F5 jointly build the full data chain DNA of financial technology from code to user
Detailed explanation of C language knowledge points -- first understanding of C language [1] - vs2022 debugging skills and code practice [1]
How to upload large files quickly?
Basic operation of circular queue (Experiment)
LeetCode 练习——396. 旋转函数
Leetcode153 - find the minimum value in the rotation sort array - array - binary search
随机推荐
冰冰学习笔记:一步一步带你实现顺序表
Will golang share data with fragment append
Bingbing learning notes: take you step by step to realize the sequence table
脏读、不可重复读和幻读介绍
Is asemi ultrafast recovery diode interchangeable with Schottky diode
Detailed analysis of SQL combat of Niuke database (26-30)
win10 任务栏通知区图标不见了
Introduction to distributed transaction Seata
中富金石财富班29800效果如何?与专业投资者同行让投资更简单
3、 Gradient descent solution θ
Async keyword
PSYNC synchronization of redis source code analysis
LeetCode165-比较版本号-双指针-字符串
Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]
JUC学习记录(2022.4.22)
我的树莓派 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
Leetcode162 - find peak - dichotomy - array
UML learning_ Day2
8.5 concise implementation of cyclic neural network