Bug 3251

Summary: -B (bind_interface) option does not work with -J (jumphost)
Product: Portable OpenSSH Reporter: Anatoliy Kushner <lamazavra>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: minor CC: djm
Priority: P5    
Version: 8.4p1   
Hardware: amd64   
OS: Linux   

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