Re: Rsync over SSH-tunnel A->B->C using daemon on C

This is a discussion on Re: Rsync over SSH-tunnel A->B->C using daemon on C within the Rsync forums, part of the Networking and Network Related category; On Wed, Oct 12, 2005 at 12:45:09PM +0200, Stefaan Lhermitte wrote: > ssh HOST_B ssh HOST_C rsync --daemon ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2005
Wayne Davison
 
Posts: n/a
Default Re: Rsync over SSH-tunnel A->B->C using daemon on C

On Wed, Oct 12, 2005 at 12:45:09PM +0200, Stefaan Lhermitte wrote:
> ssh HOST_B ssh HOST_C rsync --daemon


What you should check is: (1) was the daemon actually started? Or did
it complain (in the log file) and die? (2) Is the daemon configured to
listen on port 8873 instead of 873? (You can force this with either the
--port=8873 command-line option or via the port option in the config
file.)

> ssh -fN -l myusername -L 8873:HOST_B:8873 HOST_C


This connects to HOST_C and creates a tunnel from port 8873 on the local
host (through the ssh connection) to HOST_C, which will forward any
connects to HOST_B's port 8873. It seems to me that you want to reverse
those hostnames. (Aside: if you can directly ssh to HOST_C, you could
just rsync without daemon mode directly to HOST_C using ssh.)

> rsync -auv rsync://HOST_C:8873/module_on_HOST_C/folder_on_HOST_C /folder_on_HOST_A


You need to connect to port 8873 on *localhost* for the forwarding to
occur:

rsync -auv rsync://localhost:8873/module_on_HOST_C/folder_on_HOST_C /folder_on_HOST_A

...wayne..
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0