Re: Using tar in forced ssh command?

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 02/22/05

  • Next message: Simon Tatham: "Re: Using tar in forced ssh command?"
    Date: Tue, 22 Feb 2005 16:33:46 +0100
    
    

    In comp.security.ssh Michael Heiming <michael+USENET@www.heiming.de>:
    > Slight problem with an ssh forced command. (Using OpenSSH_3.6.1p2
    > - latest update for RH ES 3.0)

    > Something like this works as expected:

    > ssh box "tar -cvjf - /path" > file.tar.bz2

    > Now setting a forced command in ~/.ssh/authorized_keys on "box" seems to
    > work, but alas output is garbage:

    > command="tar -cvjf - /path" ssh-dss ....

    For the archives, solved! The trick is to simply add ",no-pty"
    directly behind 'command="...."', go figure...;)

    -- 
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 182: endothermal recalibration
    

  • Next message: Simon Tatham: "Re: Using tar in forced ssh command?"

    Relevant Pages

    • Re: Suggestions for remote admin of linux machines
      ... John Hasler was seen spray-painting on a wall: ... > Michael Heiming writes: ... "If the rebels manage to trick me, ...
      (comp.os.linux.misc)
    • Re: Estimated Linux distributions popularity scores
      ... In an attempt to throw the authorities off his trail, Michael Heiming transmitted: ... >> Is there any table of information showing estimated popularity of various ... you could mail those distro and ask them how much they ... "If the rebels manage to trick me, ...
      (comp.os.linux.misc)
    • Re: Estimated Linux distributions popularity scores
      ... In an attempt to throw the authorities off his trail, Michael Heiming transmitted: ... >> Is there any table of information showing estimated popularity of various ... you could mail those distro and ask them how much they ... "If the rebels manage to trick me, ...
      (comp.os.linux.questions)
    • Re: operation between two files (awk or sed )
      ... Michael Heiming wrote: ... > Sounds as if you wouldn't need sed/awk, ... > trick, just take a look at the fine manual 'man join'. ...
      (comp.unix.shell)
    • Re: Changed root permissions, cant log on..
      ... In article, Michael Heiming wrote: ... IIRC I have posted it dozens of times: ... trick. ...
      (comp.os.linux.setup)