Re: using ssh remotely



On Feb 22, 12:14 pm, Cyrus Kriticos <cyrus.kriti...@xxxxxxxxxxxxxx>
wrote:
rva...@xxxxxxxxx wrote:
  I am trying to execute this command using ssh:

   ssh 1.4.999.99 gunzip /tmp/test2.tar.gz | tar -xf -

   it seems like its executing the gunzip but not untarring the file..

  Can this be done using ssh?

Extract on localhost:
ssh x.x.x.x gunzip -c /tmp/test2.tar.gz | tar -xf -

Extract on remote server:
ssh x.x.x.x "gunzip -c /tmp/test2.tar.gz | tar -xf -"

--
   Best regards  |  Be nice to America or they'll bring democracy to
   Cyrus         |  your country.

This doesn't work. It doesn't even do the first step which is gunzip

.



Relevant Pages

  • Re: using ssh remotely
    ... Extract on localhost: ... Extract on remote server: ... It doesn't even do the first step which is gunzip ...
    (comp.unix.shell)
  • Re: using ssh remotely
    ... Extract on remote server: ... It doesn't even do the first step which is gunzip ... ssh x.x.x.x "which gunzip tar" ... ssh x.x.x.x "uname -a" ...
    (comp.unix.shell)
  • Re: Help with gz files
    ... I need to pull out one file out of gzip file. ... Use gunzip to do that: ... That what I need to know, I don't want to extract the whole file because ... If the original is a gziped tar ...
    (Debian-User)
  • Re: Extract file from tar home/
    ... (or tar xvf to if you want to watch it working) ... To extract only a specific file: ... avoid the time and CPU cycles involved in the gunzip step. ... his entire home directory in the tarball, ...
    (Fedora)
  • Re: Extract file from tar home/
    ... (or tar xvf to if you want to watch it working) ... To extract only a specific file: ... avoid the time and CPU cycles involved in the gunzip step. ... his entire home directory in the tarball, ...
    (Fedora)