[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with ProxyCommand


see https://bugs.kde.org/show_bug.cgi?id=273397

------

When using a "ProxyCommand" option, libssh requires the command to be
quoted (i.e: ' ProxyCommand "ssh -q -A -X -W %h:%p JUMPHOST" ') for the
whole line to be used (otherwise only "ssh" is called).

i.e.: on the quoted string is loaded, everything else following the
blank is discarded. Parameters are split between blanks inside the
quoted string.

Result:
- kio_sftp (which is libssh-based) works
- ssh complains it can't find an executable named "ssh -q -A -X -W %h:%p
JUMPHOST" and fails.

------

This differs from ssh's own behaviour, where command should NOT be
quoted (i.e: ' ProxyCommand ssh -q -A -X -W %h:%p JUMPHOST '), otherwise
the whole quoted string is interpreted as the executable name.

i.e: the whole line is loaded and parameters are split between blanks
outside the string.

Resuot:
- ssh works as it should
- kio_sftp only runs "ssh" without any option and gets the "ssh usage"
as an error and fails.



Follow-Ups:
Re: Problems with ProxyCommandAris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org