Query related to the SSH key pairs

Hi All,

I have question , How to generate the SSH keys for the two servers in the pair.

So if the server will be replicated , same SSH key pairs will work on each server. No need to generate the SSH keys for the second server.

I have created the SSH keys for the single server. I was thinking if I will copy paste the rsa_id.pub file to the second server, It seems it is not working in this way.

No need to generate the SSH keys for the second server

Not a good idea. The pub key works off the private key. The private key "knows" what server it belongs on. So if you need passwordless ssh, scp, sftp going from A->B and B->A you need two key sets.

ssh v2 public keys on Solaris 9, for example, have the server name in them for which they "work".

There are other less secure ways to connect passwordlessly. Not with ssh. Are you looking for a short cut or is your idea part of a requirement.