X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: SZABO Gergely <gergely.szabo@knorr-bremse.com>
Subject: Re: scp fails without a warning.
Date: Wed, 13 Oct 2010 16:29:08 +0000 (UTC)
Lines: 36
Message-ID: <loom.20101013T182509-461@post.gmane.org>
References: <45833C44DA56B948A31517B07F7CCEC112B45EDB4D@VAFF06-MABPRD01.ad.gd-ais.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Wiles, Dale L. (NE <Dale.Wiles <at> gd-ais.com> writes:

> 
> I updated cygwin yesterday (10/12/10) and rebooted my Windows XP (SP3) box. 
Now, when I use scp from a Red Hat
> 5.5 box to my Windows box, scp quietly fails.
> 
> If I run (from Red Hat) "scp uname <at> windowsbox:file .", I'm prompted for
my password.  I type it in and then, a
> moment later, scp exits.  No data gets transferred and there is no error
messages.  If I type in a garbage file
> name, I get the same results.  There is no error message.
> 
> If I run "sftp uname <at> windowsbox:file ." I'm prompted for my password and
the file transfers normally. 
> Unfortunately I need a recursive copy.
> 
> I can also ssh into my windows box with no problem.
> 
> /var/log/sshd.log exists, but is empty.
> 


At least, could you check scp's exit code?
$ scp ....
$ echo $?

If it's nonzero, you could produce the error message yourself:
$ scp ... || echo "scp failed"

Not that it fixes scp... :-(
Does MidnightCommander's Shell-link panel fail too?

Best regards
Gergely



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

