0

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?

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109
  • 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 01: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 01: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 02: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 08:40

1 Answers1

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.

justarobert
  • 1,869
  • 13
  • 8