Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: scp to pipe

Subject: Re: scp to pipe
Date: Thu, 16 Sep 2004 09:01:16 +0100 (BST)
Hallo!

This would be futile anyway.
There is a reason why the usage of tar and scp. 

In reference of below, that should work fine or simply choose for a scp
without the tar e.g

scp -prv /path/to/my-files user@remote-host:~/path/to/

Could somebody explain me the explicit use of the pipe, scp and tar?

Cheers Pat


On Sep 13, 2004 07:30 PM, Mauricio Araya V. <mauricio@hostarica.com>
wrote:

Hi there!

On Sat, 2004-09-11 at 03:49, hlaguy wrote:
How can scp write to a pipe that tar could then process?

Why scp?

It's not all clear fot me, but i think you may want this:

% tar czf - /path/to/my-files | ssh remote-host "cat > my-files.tgz"
or
% tar czf - /path/to/my-files | ssh remote-host tar xzf -

Regards,

-Mauricio

Attachment: Patrick Lapre.vcf
Description: Vcard

<Prev in Thread] Current Thread [Next in Thread>