I'd also check out rsync to save bandwidth, epecially if you are
transferring the same log file with only additions to it. rsync only
transfers the deltas of the files and can use ssh as the transport,
including your ssh keys everyone just told you about.

On Thu, 12 Jun 2003, Austad, Jay wrote:

> Use the .ssh/authorized_keys file.
> 
> On your source machine, use ssh-keygen to generate yourself a key, put it in
> your .ssh directory.  Take the text of the public key, and place it in the
> .ssh/authorized_keys file under the user account on your target machine.  
> 
> scp logs/*.log user at 10.1.1.1:/home/user/logs/
> 
> It won't ask you for a password as the key will match.
> 
> > -----Original Message-----
> > From: Justin Kremer [mailto:kremer at ringworld.org]
> > Sent: Thursday, June 12, 2003 3:41 PM
> > To: tclug-list at mn-linux.org
> > Subject: Re: [TCLUG] scp
> > 
> > 
> > How about using a key instead of a password?
> > 
> > On Thu, 12 Jun 2003, Raymond Norton wrote:
> > 
> > > I want to use scp to transfer a number of log files from 
> > different hosts to
> > > my server on a daily basis .  So far, the docs I have found 
> > only give
> > > examples of usernames from the command line. I need to do 
> > the username and
> > > password so I can schedule a script to run each night. Is 
> > there a way to do
> > > this?

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list