delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/13/11:11:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=AWL,BAYES_00,DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG
X-Spam-Check-By: sourceware.org
Message-ID: <21438889.post@talk.nabble.com>
Date: Tue, 13 Jan 2009 08:11:03 -0800 (PST)
From: jedalaurin <neonflux386 AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: file mirroring
In-Reply-To: <20090113151519.GA29292@tomas>
MIME-Version: 1.0
References: <21430068 DOT post AT talk DOT nabble DOT com> <496C4011 DOT 6020003 AT cygwin DOT com> <21430861 DOT post AT talk DOT nabble DOT com> <20090113131143 DOT GA28581 AT tomas> <21435784 DOT post AT talk DOT nabble DOT com> <20090113151519 DOT GA29292 AT tomas>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id n0DGBnNh017780



Tomas Zerolo wrote:
> 
> -----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 AT 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/
> 
> 
> 


(1) What happens if you invoke the ssh command on the Windows box?
    (you should get a shell on the RedHat box).
on the window box(server_B):
-as root: i can login just like your in linux box.
-as someuser: where I've setup the rsync
http://www.howtoforge.com/mirroring_with_rsync:
It tend to disconnect me: like this Connection closed by server_A

(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)? 

Sorry for the delay I cant find the ssd.log, auth.log, demon.log.

here is my /etc/ssh/sshd_config

#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#ShowPatchLevel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/libexec/openssh/sftp-server
[root AT cdr1-218 /]# tail /etc/syslog.conf
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
*.emerg                                                 *

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log

-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21438889.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019