Re: Using tar in forced ssh command?

From: Simon Tatham (anakin_at_pobox.com)
Date: 02/22/05


Date: 22 Feb 2005 16:26:44 +0000 (GMT)

Michael Heiming <michael+USENET@www.heiming.de> wrote:
> For the archives, solved! The trick is to simply add ",no-pty"
> directly behind 'command="...."', go figure...;)

Ah yes, of course! Because the pty layer must be doing something
silly with line endings: converting an LF sent to the terminal by
the application into the CR+LF required to display correctly on a
VT terminal emulator. That'd certainly do bad things to binary data
such as bz2.

You could probably have achieved the same effect using the `-T'
option to ssh, or by supplying a dummy command (`ssh box sdfsdf').
The dummy command would have been overridden at the server end, but
the client wouldn't have known that and would have avoided asking
for a pty.

-- 
Simon Tatham         What do we want?        ROT13!
<anakin@pobox.com>   When do we want it?     ABJ!