[Bug 3490] Inconsistent behaviour when using -i and -J options

bugzilla-daemon at mindrot.org
Thu, 17 Nov 2022 12:22:53 -0000

--- Comment #2 from Stephan Wonczak <wonczak at uni-koeln.de> ---
I still think this is inconsistent an unexpected behaviour. For one
thing, the documentation in "man" for -J is far from clear, expecially
in respect to the interactions with keys.
If an explicit key is supplied by "-i" it should at least be offered
to
the jump host - as a user this is what I would expect. And in a way,
this is the behaviour if I use ssh-agent to have a key in my local key
purse. I see no reason why this should differ from supplying a key on
the command line, especially when it is possible to use multiple "-i".
This would also cover the case when the required key for the jump host
differs from the key for the target host - simply supply both keys via
-i.
On the other hand it really is unexpected when an explicitly given
(correct!) key is not even offered to the jump host.