Hello,
I am trying to set up a SSH key between servers so no password is required when I have to "scp" files between the two.
This is what I have tried so far but still requires a password:
Code:
Code:
ssh-keygen -t rsa
scp /home/<user>/.ssh/id_rsa <server2.com>:/home/<user>/.ssh/authorized_keys
When I scp after this I wasn't expecting to need a password but it is still prompting. Now I have used this same method before and it has worked great. The only difference this time is server2 is not in the same cage.
I should also say that I have checked the authorized_keys file on the destination server to make sure the rsa key is in there and it is.
Is there something I might be doing wrong or missing?
Thanks