ProxyJump does not accept IPv6 for the intermediate host?
Stuart Henderson
stu at spacehopper.org
Wed Mar 13 22:36:40 AEDT 2024
On 2024/03/13 12:19, Adam Kalisz wrote:
> Hello,
>
> it seems I cannot use:
>
> $ ssh -J root at 2a01:4f8:1c1e:528d::1 root at west-coast
> Invalid -J argument
>
> (The west-coast is stored on the jump host in between in /etc/hosts.)
>
> $ ssh -J root at 167.235.141.44 root at west-coast
>
> Works as expected. Also
>
> $ ssh root at 2a01:4f8:1c1e:528d::1
>
> does work as expected. I do have native IPv6.
>
> This is on Debian 12 Bookworm:
> $ ssh -V
> OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.11 19 Sep 2023
>
> The workaround seems to be to define the host used in ProxyJump in
> ~/.ssh/config then it works with IPv6 too.
>
> Yes, I known I should use IPv6 with DNS which is not the point here.
>
> What have I overlooked?
$ ssh -J root@[2a01:4f8:1c1e:528d::1] root at west-coast
More information about the openssh-unix-dev
mailing list