Why are the arguments supplied for the command run through ssh interpreted by shell before they are passed to the command on the server side?

Thorsten Glaser t.glaser at tarent.de
Mon Jan 13 07:17:38 AEDT 2020

On Sun, 12 Jan 2020, Yuri wrote:

> This was English, not German, BTW.

For some values of English, perhaps.

> You would lose the ability to redirect I/O in an immediate way, but you would
> always be able to run a shell command like "/bin/sh" "-c" "any-command | tee
> cmd.log | process-further" which would regain the ability to do everything
> that a shell can do.

Yes, but

	ssh -z remhost sh -c "something"

is exactly identical to

	ssh remhost "something"


tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

More information about the openssh-unix-dev mailing list