Dear RSYNCians, 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@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 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@localhost -p 873. Thanx for your help in advance, Stef
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@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 failedCan 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@localhost -p 873.-- Andrzej [en:Andrew] Adam Filip anfi@priv.onet.pl anfi@xl.wp.pl Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
Haai Andrzej,
The problem is solved. When I double checked the ssh-b file I realized I
had to change the linux commands to cygwin commands.
From that moment all commands (like date, hostname...) worked on the C-host
So with the key authentification and the following ssh-b script:
#!/bin/bash
ssh myname@host_B ssh "$@"
the rsync command works:
rsync -auv -e ~/ssh-b /cygdrive/driveletter/localfolder/
host_C:/cygdrive/driveletter/remotefolder
and I don't get the pseudo terminal warning anymore.
Whenever you are in Belgium, I owe you a beer or something else to drink.
Thanx a lot for all the help.
Kind regards,
Stef
Andrzej Filip wrote:
> Stefaan Lhermitte wrote:
>
>> I did. I can now connect via SSH as wel from A -> B as from B
-> C.
>> I also resolved the problem of not being able to connect to C. I
>> restarted the sshd and now it works.
>>
>> The problem now stays with the rsync. I used:
>> rsync -auv -e ~/ssh-b /cygdrive/driveletter/localfolder/
>> computer-C:/cygdrive/driveletter/remotefolder/
>> I get no errors but only the following output:
>> Pseudo-terminal will not be allocated because stdin is not a terminal.
>>
>> Unfortunately it does not rsynchronize, since no files are copied.
>
>
> 1) Do you get computer-C shell prompt when you execute "~/ssh-b
> computer-C" ?
> [ you may ignore "pseudo terminal warning in *this* test ]
> 2) What do you get when you execute "~/ssh-b computer-C date" ?
> [ Is date program executed on C ? ]
>
>
-------------- next part --------------
HTML attachment scrubbed and removed
Yessos, very cool. It works even with rsync -auv -e "ssh myname@host_B ssh" src_folder host_C:sdt_dir Sometimes solutions can be very simple... Unfortunartely all open positions for email postmasters are just filled in. I did my best to convince my boss, you were better, but it didn't work.:) Thanx again! Stef Andrzej Filip wrote:> It is nice to know it works [finally :) ]. > > As the last check try to eliminate ssh-b script and test > rsync -auv -e "ssh host_B ssh" src_dir host_C:sdt_dir