ProxyJump does not accept IPv6 for the intermediate host?
Adam Kalisz
adam.kalisz at gmail.com
Wed Mar 13 22:19:24 AEDT 2024
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?
Thank you for any help.
Adam Kalisz
More information about the openssh-unix-dev
mailing list