RSync + SSH tunneling through firewall

Stefaan Lhermitte stefaan.lhermitte at agr.kuleuven.ac.be
Wed Sep 8 09:21:26 GMT 2004


I tried to connect the tunnel with another port number. When I use port 
number 22 instead of 873 I can telnet to C from B.
When I telnet I get  "SSH-1.99-OpenSSH_3.9p1."

Subsequently I ran: ssh -v -L 22:C-computer:22 myname at B-computer

When I run now the rsync command:
rsync -v /cygdrive/d/folder/ 127.0.0.1::cygdrive/folder
I get the error: "failed to connect to 127.0.0.1. Connection refused."

When I run:
rsync -v --port=22 /cygdrive/d/folder/ 127.0.0.1::cygdrive/folder
I get the error "server sent SSH-1.99-OpenSSH_3.9p1 rather than greeting"

I assume it is a problem associated with the telnet command. Can anyone 
help?

Kind regards;
Stef



Andrzej Filip wrote:

> Stefaan Lhermitte wrote:
>
>> I'm trying to rsync my labtop pc (let's assume A-computer) with my 
>> desktop pc (let's assume C-computer) through our firewall.
>> In between there is one computer (let's assume B-computer) that has 
>> an open port, so I theoretically could connect via a tunnel.
>> I checked the SSH- website and internet and so on but did not find an 
>> answer that works.
>>
>> I tried the solution I found on the net:
>> When I run ssh -v -L 873:C-computer:873 myname at B-computer and get 
>> connected to B-computer without any problems.
>>
>> When I subsequently run in a new window:
>> rsync -v /cygdrive/d/folder/ 127.0.0.1:: cygdrive/folder
>> I get the following error:  Connection reset by peer.
>> In the tunneling window teh following error appears: 
>> administrativetly prohibited: open failed
>
>
> Can you telnet port 873 on C from B ?
> [ Is rsync daemon listening on C ? ]
>
>> I'm kind of new in the SSH-RSYNC world and don't know how to solve 
>> the problem.
>> I assume it is an SSH problem since the problem persist when I run:  
>> ssh myname at localhost -p 873.
>
>

-- 
________________________________________________________________________

Stefaan Lhermitte
Research Associate
Lab of Geomatics and Forest Engineering K.U. Leuven
Vital Decosterstraat 102. B-3000 Leuven Belgium
Tel:+32-(0)16-329750 Fax: +32-(0)16-329760 Cell: +32-(0)494-350842
stefaan.lhermitte at agr.kuleuven.ac.be
________________________________________________________________________
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list