[Bug 2831] New: ProxyJump self-exec construction ignores path-to-self, exec's wrong ssh
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Feb 13 09:20:48 AEDT 2018
https://bugzilla.mindrot.org/show_bug.cgi?id=2831
Bug ID: 2831
Summary: ProxyJump self-exec construction ignores path-to-self,
exec's wrong ssh
Product: Portable OpenSSH
Version: 7.6p1
Hardware: 68k
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: phil.pennock at globnix.org
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[0] 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
configuration directive.
Since config can be read by "sftp" etc, I suspect that one fix is to
look for a path separator in "our" argv[0] and if found, then replace
the last component with "ssh" and use the result as the new process'
argv[0], otherwise fall back to "ssh".
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list