The oreilly book on the subject is very helpful.  But the quick and dirty is 
this:

on the remote machine, make sure the users home directory contains the .ssh 
dir

on the local macine do this:

user at local $ ssh-keygen -t rsa    #you can optionally specify other key types 
if you wish
Generating public/private rsa key pair
Enter file in which to save the key (/home/user/.ssh/id_rsa):    #default ok
Enter passphrase (empty for no passphrase): #just hit enter
Enter the same passphrase again: #hit enter again
The key fingerprint is:
blah blah blah......
user at local $ cat /home/user/.ssh/id_rsa.pub | ssh remote-machine 'cat >> 
.ssh/authorized_keys'
user at remote-machine's password:  #enter the password
user at local $ ssh remote-machine
user at remote-machine $  #No password this time!

If that dosnt work, check the permissions of the authorized_keys file (should 
be 600 or rw-------).


Jay

On Thursday 12 June 2003 03:46 pm, Raymond Norton wrote:
> I am looking for docs on this. Any good links for a newbie?
>
>
>
> ----- Original Message -----
> From: "Justin Kremer" <kremer at ringworld.org>
> To: <tclug-list at mn-linux.org>
> Sent: Thursday, June 12, 2003 3:40 PM
> 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

-- 
Jay Kline
http://www.slushpupie.com


_______________________________________________
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