delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/13/12:29:37

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: SZABO Gergely <gergely DOT szabo AT knorr-bremse DOT 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 AT VAFF06-MABPRD01 DOT ad DOT gd-ais DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

- Raw text -


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