Friday, February 23, 2024

Re: ssh IPV6 link local through jumphost

Le Fri, Feb 23, 2024 at 12:33:42PM -0500, Tom a écrit :
> Hi list!
>
> Could you please guide me how to use link-local addresses with jumphost?
>
> I have a server 'X' with a link local IPv6 address of
> fe80::262:bff:aaaa:bbbb
> that IP is reachable from the server 'jumpserver' via interface em0,
> command `ssh user@fe80::262:bff:aaaa:bbbb@em0` works just fine.
>
> However if I issue the command:
> `ssh -J user9001@jumpserver user@fe80::262:bff:aaaa:bbbb%em0`
> that doesn't work:
> Error: channel 0: open failed: connect failed: hostname
> nor servname provided, or not known stdio forwarding failed
>
> The command above works fine for IPv6 GUA 2006::XYZ.
>
> Tried versions OpenSSH_7.5, OpenSSH_9.6.
>

I can confirm it works with OpenSSH_9.6 on OpenBSD-current.
Any change to ssh_config or sshd_config ?

No comments:

Post a Comment