RSYNC over SSH using OpenWRT and Seagate Personal Cloud
I have possibility to use 2,5 GB Internet link in geographically distant location for backup needs. So I want to use TP-Link Gigabit router WR-1043WD with OpenWRT installed on it. There is Seagate Personal Cloud 3,5'' 4TB connected to router over Ethernet cable. Seagate Personal Cloud has possibility to run RSYNC client and server, but there is no SSH on it. I dont want to install alternative software on Seagate Personal Cloud because of warranty. But of course it is very simple to run SSH and RSYNC on OpenWRT. My idea is to RSYNC over SSH data from home server to the distant location mentioned before. My question is. How can I tunnel RSYNC traffic over SSH to router and than RSYNC without SSH data with Seagate Personal Cloud in clear (unencrypted) form?
|
that looks like a simple port forwarding. You need to run rsync server on your Seagate Personal Cloud and you need to specify a server port (default is 873). But I still do not understand how do you want to reach what, from where and over ssh/rsync or ??
|
I want to create ssh tunnel between my home server and OpenWRT router and than RSYNC data from server to Seagate Personal Cloud unit connected to router. Of course I can use OpenVPN instead but I think that SSH tunel is more easy to use and maintain.
|
Is there any way to get SSH on the "Seagate Personal Cloud" device? Then it would be a matter of simple port forwarding from the TP-Link
|
This is exactly my problem. There is no way to run SSH on Seagate. As I wrote, it is possible to install alternative firmware on Seagate (with SSH - dropbear installed) but I will lost 3 years warranty.
|
if there was no ssh server on your Seagate Personal Cloud device you cannot ssh tunnel onto it. But you can forward a port from your router to that device and you can rsync using your router's ip/port.
|
Yes, if you can SSH to or via the router, I'm pretty sure you can have SSH do the forwarding so that at least the external connection is encrypted. You'll have to know which port rsync on the "Seagate Personal Cloud" uses to listen.
Code:
ssh -L 8873:seagate:873 router.example.org Just a guess. |
Yes I can forward port but transmission over Internet will not be encrypted
|
Quote:
|
and again, if there was no ssh (server/client) on seagate you cannot make encrypted connection. Tunnelling might work.
|
Problem totally resolved. New version of Seagate firmware, allows RSYNC over SSH natively !!! Good boys....
|
Hi mackowiakp,
What rsync command are you using with your Seagate? I have a Seagate Personal Cloud 2 Bay running firmware version 4.2.13.0 and no matter what I try, I get this error: Code:
# /usr/bin/rsync -v netbackup@192.168.2.43:./ |
RSYNC implementation in Seagate is very primitive. It has only one rsync instance. So correct syntax should be:
Code:
/usr/bin/rsync -v /source_dir netbackup@192.168.2.43::NetBackup |
Quote:
|
All times are GMT -5. The time now is 05:20 AM. |