[SOLVED] RSYNC over SSH using OpenWRT and Seagate Personal Cloud
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
Then you should be able to rsync to localhost and it will be forwarded via the router to the Seagate.
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
Then you should be able to rsync to localhost and it will be forwarded via the router to the Seagate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.