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 ???
Rgds Gopi
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.
try refering to key based authentication docs on ssh sites or tlpd. i have done it a few times by simply following the RTFM
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.
Generate keys and write a GNU expect script which you put in cron then enjoy a good night's sleep ;-)
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 ???
Only if you tell us what exactly happens on you trying to ssh after that. Oh, also tell us the permissions of the files inside the user's .ssh directory.
Regards,
- vihan
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
On 2/16/07, saurabh daptardar saurabh.daptardar@gmail.com wrote:
- In both machines the authorized_keys2 file contains public keys of both
user1@host1 and user2@host2
The file name can also be authorized_keys (2 is not really important)
- Have you restarted sshd service after making the changes ?
Is this step really required?
Hi,
Thanks guys for your help. The problem is solved.
Gopi
On 2/16/07, Senthil Kumaran S stylesen@gmail.com wrote:
On 2/16/07, saurabh daptardar saurabh.daptardar@gmail.com wrote:
- In both machines the authorized_keys2 file contains public keys of
both
user1@host1 and user2@host2
The file name can also be authorized_keys (2 is not really important)
- Have you restarted sshd service after making the changes ?
Is this step really required?
-- Senthil Kumaran S http://www.stylesen.org