To connect to the source server by SSH:
If not, use the ssh-keygen
utility to generate it:
# ssh-keygen -t rsa
During the key pair generation, specify the directory for storing it (usually it is /root/.ssh/id_rsa
) and do not enter a passphrase.
# ssh-copy-id <user name>@<IP address>
Where <root user name>
is the name of the user with UID=0 (usually it is root
) and <IP address>
is the IP address of the source server.
For example:
# ssh-copy-id root@203.0.113.0
/root/.ssh/id_rsa
.