I am using the new ProxyJump option with SSH. I am having troubles with the IdentityFile for the proxy.
Sample SSH config:
Host proxy HostName 184.108.40.206 User foo Port 1234 Identityfile ~/.ssh/mykey.id_rsa Host target HostName 220.127.116.11 User bar Port 5678 Identityfile ~/.ssh/mykey.id_rsa ProxyJump proxy ForwardAgent yes
ssh ssh localhost ------> proxy ------> target ^ ^ using using mykey mykey
Using the ssh command with this config works out:
I am trying to perform this operation without the config file, but it does not work:
ssh -i ~/.ssh/mykey.id_rsa -AJ email@example.com:1234 firstname.lastname@example.org:5678
I can't find a way to specify the IdentityFile with
-i for both the ProxyJump host and the target host to make it work.
ssh -i ~/.ssh/mykey.id_rsa -AJ proxy email@example.com:5678
Is there a way of using the
-o flags to do this?