I'm trying to log into my-server through a jump server, jump.example.com.
I can successfully log into the jump server without a password request:
ssh -i .ssh/id_rsa user@jump.example.com
But if I use
ssh -i .ssh/id_rsa -o ProxyCommand="ssh -W %h:%p user@jump.example.com" user@my-server
# or
ssh -i .ssh/id_rsa -J user@jump.example.com user@my-server
I'm prompted for a password for user@jump.example.com.
I would not be surprised if I would prompted for a password for user@my-server instead.
How can I specify an identity file for the jump server?