Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have just setup cwRsyncServer on my 2008 server, it is permitted by the firewall, and I have configured a module with write access. The rsync server is running and listening.

I have cnfigured an ssh keypair, and placed the public key in authorized_keys on the server.

From the client, I am trying this command with the new file test.txt

rsync -av test.txt windowsaccount@192.168.1.1:/test.txt

On the server I have no recorded error and nothing in the logfile, on the client I get a connection timed out error.

What am I doing wrong and how can I troubleshoot it? Is it something to do with Windows credentials?

share|improve this question
    
Is sshd running on the Windows server? Is port 22 really open? Timeouts on the client side suggest that connection attempts are being dropped/blocked by the server. –  Steven Monday Mar 28 '11 at 1:12
    
Do I need ssh? I have not specified to use ssh on the command line, so why would it require it? –  Jason Bateman Mar 28 '11 at 1:47
    
On most modern platforms, rsync defaults to using ssh to create its communications channels to remote hosts. For more information about this, check the rsync man page. –  Steven Monday Mar 28 '11 at 2:13
    
@steven-monai: cwRsync is a repackaging of rsync and cygwin, and installs the server component as a service in daemon mode. I think the sample config file it ships doesn't use ssh, but it's been a while since I used cwRsync. –  justarobert Mar 28 '11 at 8:40

1 Answer 1

I am guessing that you set up cwRsyncServer in daemon mode, though, without seeing the configuration file, I cannot be sure. To use rsync to connect to a rsync daemon in daemon mode, use

rsync -av test.txt 192.168.1.1::modulename/test.txt

where modulename is a module you've defined in your config file. If you actually want to use your ssh keys to secure your connection, you will need to have an ssh daemon running. See the cwRsync FAQ for more details.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.