rsync using SSH keys
Hi all,
I have two remote servers which both use the same SSH keys ie don't have a root password. I want to rsync from server #1 to server #2. I am asked for the root password for server #2 (see below) but it does not have a root password. Any ideas please? Thanks... Quote:
|
Besides the host key, you need to have created an ssh key for the root account (/root/.ssh/id_*) on server #1, and that public key need to be present in /root/.ssh/authorized_keys on server #2.
|
I done this once, i think it never asked me for root password.
------------------- Gujarat 11th 1st semester result 2015 |
rsync just uses the standard ssh keys. Get to the point where you can ssh between the machines without a password and you'll be able to rsync between them as well.
In short - ignore rsync for now, and just focus on getting ssh working. What have you done so far? |
Also, having SSH keys does not mean you don't have a root password, those two things are completely independent and not mutually exclusive. How do you not have a root password? What distro is this?
|
All times are GMT -5. The time now is 10:15 PM. |