Re: Problems with ProxyCommand
- Subject: Re: Problems with ProxyCommand
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 10 Apr 2013 14:11:23 +0200
- To: libssh@xxxxxxxxxx
I think this may be a bug in the proxycommand parser. Andreas, what do
you think ?
Le 10/04/13 04:52, DrYak a écrit :
> 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.
> - 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.
> - ssh works as it should
> - kio_sftp only runs "ssh" without any option and gets the "ssh usage"
> as an error and fails.
Archive administrator: email@example.com