Let's say I have the following setup:
ssh ssh
A ------> B ------> C
^ ^
using A's using B's
key key
I'm trying to configure this in .ssh/config
in the host A
as follows:
Host C
HostName C.com
IdentityFile path_to_key_1
ProxyCommand ssh -i path_to_key_2 B -W %h:%p
Which identify file and path go into path_to_key_1
and path_to_key_2
?
For example, does path_to_key_1
refer to a path in A
and path_to_key_2
to a path in B
? Or are they both supposed to be paths in A
?