When I try to proxy jump through multiple hosts using the most intuitive way to do that (multiple -J options), ssh misleads me into believing that ssh only supports a single jump host but if I use the right syntax by separating the hosts with commas then it works fine. I suggest that ssh either automatically combine the values of all the proxy jump options using commas or print an error directing the user to manually combine the values of all the proxy jump options using commas. $ ssh -J master.debian.org -J paradis.debian.org draghi.debian.org echo yay Only a single -J option permitted $ ssh -J master.debian.org,paradis.debian.org draghi.debian.org echo yay yay
Unfortunately, combining options as you suggest would make the handling of -J inconsistent with other command-line options as everything is first-match-wins. I don't think introducing an inconsistency is worth it for this case.
What about my other suggestion? > print an error directing the user to manually combine the values of all the proxy jump options using commas.
Created attachment 3290 [details] slightly more helpful error message
Looks good, thanks.
This is applied and will be in OpenSSH 8.1.
Close bugs fixed in openssh-8.1 release cycle