Bug ID: 2831
Summary: ProxyJump self-exec construction ignores path-to-self,
exec's wrong ssh
Product: Portable OpenSSH
OS: Mac OS X
On a system with an older release in /usr/bin and current OpenSSH in
/usr/local/bin, but for $reasons keeping /usr/bin first in the $PATH,
having "ssh" exec itself using "ssh" as argv will execute the wrong
SSH. That's what ProxyJump does.
Encountered via: git using core.sshCommand as a setting, and a config
file using ProxyJump. The child ssh will complain about the invalid
Since config can be read by "sftp" etc, I suspect that one fix is to
look for a path separator in "our" argv and if found, then replace
the last component with "ssh" and use the result as the new process'
argv, otherwise fall back to "ssh".
You are receiving this mail because:
You are watching the assignee of the bug.
openssh-bugs mailing list