LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync using SSH keys (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-using-ssh-keys-4175562296/)

Juc1 12-24-2015 01:25 PM

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:


orange# rsync -v rsync-test.txt 111.22.33.44:/data/disk/test
The authenticity of host '111.22.33.44 (111.22.33.44)' can't be established.
ECDSA key fingerprint is SHA276:VgSnr0XxTtByYYHuUfAHrvcnFVL2Yk6mb8bKB9JkJ4A.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '111.22.33.44' (ECDSA) to the list of known hosts.
root@111.22.33.44's password:

rknichols 12-24-2015 02:20 PM

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.

revanrohit 12-29-2015 07:57 AM

I done this once, i think it never asked me for root password.




-------------------
Gujarat 11th 1st semester result 2015

suicidaleggroll 12-29-2015 09:58 AM

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?

suicidaleggroll 12-29-2015 10:01 AM

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.