Re: Using tar in forced ssh command?

From: Klaus-Dieter Ost (
Date: 02/22/05

  • Next message: Darren Dunham: "Re: Disable password authentication"
    Date: Tue, 22 Feb 2005 21:05:53 +0100

    Simon Tatham schrieb:
    > Michael Heiming <> 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.

    In addition to this, w/o "no-pty", the ssh channel behaves like a "real
    tty", where both stderr and stdout use a single output stream. The tar
    archive that you are writing on your local system will therefore also
    contain the (verbose) output of your tar command. With no-pty, the ssh
    client on the local side offers both output channels.

    Dipl.-Inform. Klaus-Dieter Ost
    kdo (at)
    Unix Solaris AIX - C++ Java sh
    Software Design  Documentation

  • Next message: Darren Dunham: "Re: Disable password authentication"