On 30 May 2003, Bret Hughes wrote:

> On Fri, 2003-05-30 at 19:39, Kalin Mintchev wrote:
> >
> > hi all,
> >
> > i'm trying to do an automated process of scp between 2 linux machines.
> > i can't make it to work. here is what i've done so far:
> > used ssh-keygen to make a new key with -t rsa (or rsa1)...
> > when asked for passphrase - i leave it blank
> > after that i scp the identity.pub to the .ssh dir of the user on the
> > remote machine....
> >
> > after that i try:
> > scp -i identity moo.txt [EMAIL PROTECTED]:moo.txt
> >
> > and i get promped for password....
> >
> > i thought that the key is all one needs to automate the scp...
> > how else can i avoid the password prompt?
>
> the identity.pub contents need to be in a file named
> ~/.ssh/authorized_keys on later versions of openssh and
> ~/.ssh/authorized_keys2 on some of the earlier version that supported
> protocol 2 keys.
>
> Also the perms on the file has to be pretty tight with no group write
> IIRC.

thanks Bret....  i tried it all...
here is what i did last:

new key with ssh-keygen -t rsa;
this created 2 files id_rsa and id_rsa.pub
the id_rsa has 600 and id_rsa.pub has 644 (permissions)
scp id_rsa.pub [EMAIL PROTECTED]:.ssh/authorized_keys

=> here i get asked for password for the user so i enter it in order to
scp the file over...

i checked on the remote host in the .ssh dir and the file is on it's place
with the same permissions and with the assigned name - authorized_keys.

then from the "first" machine i do:

scp -i id_rsa.pub ../moo.txt [EMAIL PROTECTED]:moo.txt

and i get the password prompt....

what is wrong in the process above?!

thanks a lot.....

>
> Try that and get back to us.
>
> Bret
>
>
>



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to