Regarding scp with out password

Dear all,

I have two servers A and B. I want to do scp with out password between these two servers.

I created ssh-keygen and copied the id-rsa.pub file to each of them in authorized_keys.

But I could login only from B to A with out password. From A to B it is asking for a password.

any one pl guide me

Rgds
Rj

Hi jegaraman,

check if the id_rsa (the private key) is also inside server A user ~/.ssh directory?

see ya

Hi frappa...

yes ...it did not work.Any other suggestions

Hello,
I found this blog post and when ever I have an issue with ssh keys I reference this webpage.
Setup the SSH server to use keys for authentication
Just replace the dsa with rsa in this guide.

I think you need to generate a key pair on the other server and use that key pair to go in the other direction. You can use the same key pair on each server but you need to copy it over to the other server. I do it this way, because I have a automount share, so I have the same home directory on all the same servers.

I hope this helps

It doesn't work both ways. To connect in both directions, you need to generate keys and add to authorized_keys in both directions. Two different keys, separately generated for each way.

ssh-copy-id