On 2/16/07, Gòþï kgopik@gmail.com wrote:> Greetings,
I have been facing this problem for the last couple of days. I have 2
remote
Linux Servers located at Mumbai and chennai. I need to copy files to my other machine in the night. Problem is that scp command asks for password
on
every execution. redhat knowledge base ( http://kbase.redhat.com/faq/FAQ_45_8645.shtm) has highligted a way to use scp command w/o any password.
Despite me using their steps, i am unable to do the same.
Can some one help me ???
Assuming a passwordless ssh setup between user1@host1 and user2@host2 here is a checklist for you : 1) The file name is $HOME/.ssh/authorized_keys2 for authorization file? 2) In both machines the authorized_keys2 file contains public keys of both user1@host1 and user2@host2 3) The permissions of the authorized_keys2 is 600 at both places ? 4) The keys are generated using the same protocol ( dsa / rsa ) ( using -> ssh-keygen -t rsa ) ? 5) There is no problem with the identification ( visibility / mapping) of hostnames / ipaddresses ? 6) Have you restarted sshd service after making the changes ? 7) Can you perform the following passwordless ssh accesses ? user1@host1 to user1@host1 user1@host1 to user2@host2 user2@host2 to user2@host2 user2@host2 to user1@host1
Regards, Sourabh