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? > > > > > > Raymond > > ------------- > > > > Defeat is a matter of choice. > > > > --God > > > > > > > > _______________________________________________ > > 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 > > > > ------------- > Justin Kremer <kremer at ringworld.org> > > "One likes to believe in the freedom of music, > But glittering prizes and endless compromises > Shatter the illusion of integrity." > - Rush "The Spirit of Radio" (1980) > > > _______________________________________________ > 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 > _______________________________________________ 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