[Bug 3161] ssh -J <public IPv6> <LL IPv6%scopeID> doesn't work as expected

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Oct 29 13:32:53 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3161

--- Comment #4 from Owen DeLong <owen at delong.com> ---
Apologies, did not see the previous notification.

If I use no square brackets:
delong-dhcp162:owen (115) ~ % ssh -J '2001:db8::200:2'
'fe80::a:b:c:d%enp5s0'       2023/10/11 11:51:20

I get:
Invalid -J argument

With square brackets around the first argument:
delong-dhcp162:owen (116) ~ % ssh -J '[2001:db8::200:2]'
'fe80::a:b:c:d%enp5s0'     2023/10/11 11:51:28

I get:
channel 0: open failed: connect failed: open failed
stdio forwarding failed
kex_exchange_identification: Connection closed by remote host

With square brackets around both:
delong-dhcp162:owen (117) ~ % ssh -J '[2001:db8::200:2]'
'[fe80::a:b:c:d%enp5s0]'   2023/10/11 11:52:36

I get:
Bad stdio forwarding specification '[[fe80::a:b:c:d%enp5s0]]:22'
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535


If there's a syntax that works, please let me know what it is and
resolve this again. Otherwise, I think something needs to change in the
code to handle this scenario.

I will note that this:
delong-dhcp162:owen (118) ~ % ssh -J '[2001:db8::200:2]'
'2001:db8::400:7'                    2023/10/11 11:53:43

does work as expected, even if I provide a scope identifier. However,
it does not seem to be able to make it work with a link local address
even though if I first log into the jump host and then ssh to the
remote host as in:
owen.delong.com:owen /home4/owen (102) % ssh
'fe80::d455:e16c:edfc:2f1d%enp5s0'

It works just fine.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list