当前位置:网站首页>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
边栏推荐
- Sqlserver transaction and lock problem
- LeetCode165-比较版本号-双指针-字符串
- Unity_ Code mode add binding button click event
- Epoll's et, lt working mode -- example program
- Set up an AI team in the game world and start the super parametric multi-agent "chaos fight"
- When splicing HQL, the new field does not appear in the construction method
- 22年了你还不知道文件包含漏洞?
- Progress in the treatment of depression
- Introduction to Arduino for esp8266 serial port function
- Frame synchronization implementation
猜你喜欢
My raspberry PI zero 2W tossing notes record some problems encountered and solutions
Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
中富金石财富班29800效果如何?与专业投资者同行让投资更简单
8.5 concise implementation of cyclic neural network
8.2 text preprocessing
Detailed explanation of C language knowledge points -- first understanding of C language [1] - vs2022 debugging skills and code practice [1]
On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)
Basic operation of sequential stack
你还不知道责任链模式的使用场景吗?
Openfaas practice 4: template operation
随机推荐
Flink datastream type system typeinformation
Little red book timestamp2 (2022 / 04 / 22)
如何设计一个良好的API接口?
Do (local scope), initializer, memory conflict, swift pointer, inout, unsafepointer, unsafebitcast, success
On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)
3、 Gradient descent solution θ
LeetCode149-直线上最多的点数-数学-哈希表
Sword finger offer II 019 Delete at most one character to get palindrome (simple)
Introduction to dirty reading, unrepeatable reading and phantom reading
Llvm - generate if else and pH
Async void caused the program to crash
Go basic reflection
LeetCode162-寻找峰值-二分-数组
How to use OCR in 5 minutes
C语言超全学习路线(收藏让你少走弯路)
Thread synchronization, life cycle
Llvm - generate for loop
Is asemi ultrafast recovery diode interchangeable with Schottky diode
Explanation and example application of the principle of logistic regression in machine learning
Daily question - leetcode396 - rotation function - recursion