Bug 3251 - -B (bind_interface) option does not work with -J (jumphost)
Summary: -B (bind_interface) option does not work with -J (jumphost)
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.4p1
Hardware: amd64 Linux
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-13 00:45 AEDT by Anatoliy Kushner
Modified: 2021-04-23 15:02 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoliy Kushner 2021-01-13 00:45:17 AEDT
when both options (-B and -J) are used, bind_interface ( -J ) option is ignored.
Comment 1 Damien Miller 2021-03-12 15:08:57 AEDT
Per the ssh_config(5) description for ProxyJump, please set any options that you want applied to the jump host in your ~/.ssh/config file.

Most options on the command-line are intentionally not propagated to the "jump" connection because that would make it impossible to set per-hop policy.

So for your case, instead of "ssh -B em0 -J foo user@bar" you can use a config of:

Host foo
  BindInterface em0

and

ssh -J foo user@bar
Comment 2 Damien Miller 2021-04-23 15:02:28 AEST
closing resolved bugs as of 8.6p1 release