public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: tomas@tuxteam.de
To: cygwin@cygwin.com
Subject: Re: file mirroring
Date: Tue, 13 Jan 2009 15:50:00 -0000	[thread overview]
Message-ID: <20090113151519.GA29292@tomas> (raw)
In-Reply-To: <21435784.post@talk.nabble.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jan 13, 2009 at 05:30:40AM -0800, jedalaurin wrote:
> 
> 
> 
> Tomas Zerolo wrote:
[...]
> > As Larry said, this probably isn't Cygwin-specific. Rsync can be also

[...]

> server_A: Red hat
> server_B: Window 2003 (cygwin)
> 
> i was on server_B running this command:
> 
> 
> ssh -i /root/rsync/mirror-rsync-key someuser@server_A:/var/www/ /var/www/

Turns out my crystal ball was wrong ;-)

> all files on server_A to be transferred on server_B /var/www/
> I got this error:
> Connection closed by server_A
> rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
> rsync error: error in rsync protocol data stream (code 12) at
> /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
> [receiver=3.0.4]
> 
> I've already setup ssh on cygwin
> http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.
> 
> may I ask the alternative that you have the "other way 'round." for our
> option.

No, actually "this way round" seems easier. You are using Cygwin for the
SSH client (you might want to use PuTTY if you aren't taking advantage
of other Cygwin features). 

(1) What happens if you invoke the ssh command on the Windows box?
    (you should get a shell on the RedHat box).

(2) Can you see activity on the redhat's box sshd or auth log file (found
    somewhere around /var/log -- places to look would be sshd.log,
    auth.log, daemon.log syslog)?

HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJbLAHBcgs9XrR2kYRAlARAJ0Ss1ovcflUFWrWkJE15gtiI+CfGgCeJk3p
sKdA+WkDXwArOZJ47eMdJYA=
=bG9S
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  parent reply	other threads:[~2009-01-13 15:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13  7:23 jedalaurin
2009-01-13  7:29 ` Larry Hall (Cygwin)
2009-01-13  8:48   ` jedalaurin
2009-01-13 13:35     ` tomas
2009-01-13 14:17       ` jedalaurin
2009-01-13 15:10         ` Manish Sharma
2009-01-13 16:03           ` jedalaurin
2009-01-13 15:50         ` tomas [this message]
2009-01-13 17:16           ` jedalaurin
2009-01-13 14:20       ` jedalaurin
2009-01-13 18:57     ` Thorsten Kampe
2009-01-13 19:00       ` Thorsten Kampe
2009-01-14 11:34         ` jedalaurin
2009-01-14 10:07       ` jedalaurin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090113151519.GA29292@tomas \
    --to=tomas@tuxteam.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).