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

| Subject: | Re: Multiple modes? throught one connection |
|---|---|
| Date: | Wed, 15 Sep 2004 23:40:15 +0900 |
On Tue, Sep 14, 2004 at 09:31:49AM -0700, Mike Friedman wrote:
The main difference between using scp and 'ssh ... cat' to transfer a file is that the latter doesn't preserve permissions and dates. If you can live without the date preservation, this should not be a problem.
-=-=-=- 8< -=-=-=- #!/bin/sh # copyrun $1 $2 $3 # $1 is a local file # $2 is a remote host # $3 is the location to put it on the remote host eval `ssh-agent` # This will prompt the user for their passphrase, which will be cached # by ssh-agent ssh-add # now just do what you want to do. No password prompts scp $1 $2:$3 ssh $2 $3 #end -=-=-=- 8< -=-=-=- Or, better yet, just put ssh-agent and ssh-add in your .profile (or equivalent), and never be prompted for your passphrase again... -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: scp to pipe, Mauricio Araya V. |
|---|---|
| Next by Date: | Re: Multiple modes? throught one connection, Atro Tossavainen |
| Previous by Thread: | Re: Multiple modes? throught one connection, Mike Friedman |
| Next by Thread: | Re: Multiple modes? throught one connection, Atro Tossavainen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |