Hi Bud,
- You have to be in the root personal directory to create a key pair for the root user.
- When you create the keys, you must not use password, only answer with [RETURN] all the way.
- Then you copy only the "id_rsa.pub" into the /root/.ssh/authorized_keys FILE, this is not a directory.
To copy the file from the source server to the destination server you can use:
* * * * * * * * * * * *
cat /root/.ssh/id_rsa.pub | ssh -p SSH_PORT_NUMBER_ON_DESTINATION_SERVER root@destination_ip "cat >> /root/.ssh/authorized_keys"
The authenticity of host '[destination_ip]:ssh_port_number_on_destination_server ([destination_ip]:ssh_port_number_on_destination_server)' can't be established.
RSA key fingerprint is a0:2f:27:ab:cc:d8:a0:57:fc:57:ee:63:dd:58:bb:11.
Are you sure you want to continue connecting (yes/no)? YES
Warning: Permanently added '[destination_ip]:ssh_port_number_on_destination_server' (RSA) to the list of known hosts.
root@destination_ip's password: ROOT_PASSWORD_ON_THE_REMOTE_SERVER
* * * * * * * * * * * *
Then try to login from the source server to the destination server using:
ssh -p SSH_PORT_NUMBER_ON_DESTINATION_SERVER root@destination_ip
*** You should be in without a password.
Hoping it will help,
Michel-André