Using tar in forced ssh command?

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


Date: Tue, 22 Feb 2005 11:53:54 +0100

Hi!

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 ....

 ssh box > file.tar.bz2

file.tar.bz2 isn't a usable tar.bz2 file, it's slightly bigger
then without forced command, which looks like the problem.

Thx for any hints on how to resolve the problem.

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