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

bugzilla-daemon at mindrot.org
Thu, 17 Nov 2022 03:04:29 -0000

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
                 CC|                            |djm at mindrot.org
             Status|NEW                         |RESOLVED

--- Comment #1 from Damien Miller <djm at mindrot.org> ---
This is intentional - most command-line arguments are applied only to
the destination (targethost in your example) and not the connection to
the jumphost. This is noted in the manual page description for -J:

> Note that configuration directives supplied on the command-line
> generally apply to the destination host and not any specified
> jump hosts.  Use ~/.ssh/config to specify configuration for jump
> hosts.