I'm really confused about RSA keys and using them to ssh from one machine to another without password. I'm using UNIX/Linux on both machines.
I have 2 servers. I want server 1 to ssh into server 2 without password using public/private keys. I don't want server2 to ssh into server1. It's just one way.
Where do I generate the key that the other server gets? Server 1 or Server 2 and why?
I'm using ssh-keygen. Some sources say to generate the key on Server 1 and other on Server 2. Which is it?