Answer the question
In order to leave comments, you need to log in
How to write .ssh/config to ssh into the second server using the key of the first one?
If done sequentially
ssh [email protected]
ssh [email protected]
Host server1
HostName server1
Port 22
Host server2
ProxyCommand ssh server1 nc %h %p
HostName server2
Port 22
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question