Quote:
Originally Posted by
lovelysethii
but while connecting to the servers, it is still asking for password.
Not sure if this needs mentioning, but: you understand, that by what you did describe you can only log in to serverB coming from serverA, and only with the user you used on serverA to generate the key as the user on serverB you copied the public key to, don't you?
I suggest:
Create a directory "~/.ssh" for every user you want to use ssh (this is the default location for the identity files, so you won't have to use the "-i" switch).
Make the file mode for this directory "0700" and the files in there "0600", ssh can become picky about this, especially, if the files have to many privileges granted.
Make sure you have exchanged
all the necessary keys: suppose you have "userA" and "userB" on each serverA and serverB. To make sure every user can connect to any other user each has to exchange
his key with the
three others: a key is only valid for one user/server combination to another user/server-combination, not even in the other direction.
I hope this helps.
bakunin