How to set up Rsync the right way?

Status
Not open for further replies.

Atomic

Contributor
Joined
Oct 20, 2012
Messages
160
Hi Forum,

I want to sync folders on two Macs with equivalent folder on the FreeNAS, by using the Rsync feature of FreeNAS. I tried to follow this guide but it didn't work out.

How far I got:
I created key pairs on the FreeNAS users root and USER-1 (USER-1 is just a placeholder for the real username).
[root@freenas] ~# cd .ssh
[root@freenas] ~/.ssh#

[root@freenas] ~/.ssh# ssh-keygen -t rsa

[root@freenas] ~/.ssh# ls -lah
total 7
drwxr-xr-x 2 root wheel 4B Dec 28 23:12 ./
drwxr-xr-x 3 root wheel 17B Dec 27 00:16 ../
-rw------- 1 root wheel 1.7k Dec 28 23:12 id_rsa
-rw-r--r-- 1 root wheel 410B Dec 28 23:12 id_rsa.pub
[root@freenas] ~/.ssh#



[USER-1@freenas] ~# cd .ssh
[USER-1@freenas] ~/.ssh#

[USER-1@freenas] ~/.ssh# ssh-keygen -t rsa

[USER-1@freenas] ~/.ssh# ls -lah
total 23
drwx------ 2 USER-1 USER-1 5B Dec 28 23:17 ./
drwxr-xr-x 13 USER-1 USER-1 23B Dec 28 22:49 ../
-rw------- 1 USER-1 USER-1 415B Dec 28 23:18 authorized_keys
-rw------- 1 USER-1 USER-1 1.7k Dec 28 23:17 id_rsa
-rw-r--r-- 1 USER-1 USER-1 415B Dec 28 23:17 id_rsa.pub
[USER-1@freenas] ~/.ssh#


I created key pairs on the first Mac user USER-1
USER-1s-Mac-Pro:~ USER-1$ cd .ssh
USER-1s-Mac-Pro:.ssh USER-1$

USER-1s-Mac-Pro:.ssh USER-1$ ssh-keygen -b 4096 -t rsa -f id_rsa -P ""

USER-1s-Mac-Pro:.ssh USER-1$ ls -lah
total 24
drwx------+ 6 USER-1 staff 204B 27 Dez 17:36 .
drwxr-xr-x@ 31 USER-1 staff 1,0K 29 Dez 19:19 ..
-rw-r--r--+ 1 USER-1 staff 0B 27 Dez 17:36 authorized_keys
-rw-------+ 1 USER-1 staff 3,2K 27 Dez 17:33 id_rsa
-rw-r--r--+ 1 USER-1 staff 755B 27 Dez 17:33 id_rsa.pub
-rw-r--r--+ 1 USER-1 staff 3,2K 28 Dez 23:27 known_hosts
USER-1s-Mac-Pro:.ssh USER-1$


What I didn't get is, what id_rsa.pub needs to be copied to where?
 

Atomic

Contributor
Joined
Oct 20, 2012
Messages
160
Hi,

now I copied the id_rsa.pub backwards and forwards. Both Macs now have the id_rsa.pub form root and USER-1 of the FreeNAS in there authorized_keys file and I SSHed into them form the FreeNAS, so they're in the known_hosts file as well. And I did the same vise versa, to have the keys on both Macs.

But I still get an error message:
 

Attachments

  • Rsync_Mac to FreeNAS.png
    Rsync_Mac to FreeNAS.png
    599.7 KB · Views: 311
D

dlavigne

Guest
Does the specified remote path exist or is it over 255 characters? If it exists and is under 255 characters, it may be the umlauts in the path. In that case, please create a bug report at bugs.freenas.org and post the issue number here.
 

Atomic

Contributor
Joined
Oct 20, 2012
Messages
160
Hi,

the remote path exists and it's below 255 characters. The path looks like this: /Volumes/Macintosh HD/Hörbücher_Audible

If I SSH from the FreeNAS browser shell into my Mac, I am not getting prompted for a password and a cd /Volumes/Macintosh\ HD/Hörbücher_Audible works (the \ is needed for the space in the Macintosh HD name).
 
D

dlavigne

Guest
Yeah, sounds like either the space or the umlaut isn't being escaped properly. If you create a bug report, post the issue number here.
 

Atomic

Contributor
Joined
Oct 20, 2012
Messages
160
Bug report created, ticked #7350
 
Status
Not open for further replies.
Top