Quote:
Originally Posted by getrue
Hello,
i can ssh remote-machine without password.
And now i want to use gzip command for this path on remote-machine /bcksrv/ws02/ws02opt.tar
What would i do for this operation.
ssh root@remotemachine ????????????????
Thanks in advance,
King regards
|
If you just want to gzip the file on the remote machine, just run
Code:
ssh root@remotemachine gzip /bksrv/ws02/ws02opt.tar
If you want the gzipped file on your local machine, I think you should be able to do this:
Code:
ssh root@remotemachine gzip -c /bksrv/ws02/ws02opt.tar > ws02opt.tar.gz
explanation: gzip -c sends the compressed file to stdout, stdout is being sent by ssh to your local machine, and you are re-directing this to a file.