delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/23/16:09:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Richard Stanton" <stanton AT Haas DOT Berkeley DOT EDU>
To: "Cygwin" <cygwin AT sources DOT redhat DOT com>
Subject: RE: Problem using pscp with Cygwin sshd
Date: Tue, 23 Jan 2001 13:04:39 -0800
Message-ID: <LNBBKMIKMNGEJNEJICPHMEMJELAA.stanton@haas.berkeley.edu>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
In-Reply-To: <LNBBKMIKMNGEJNEJICPHIEMJELAA.stanton@haas.berkeley.edu>

In case this helps, here's some of the debugging output from the transfer
that worked, which is very slightly different from the output when it fails
(I've noted differences in square brackets):

debug1: Attempting authentication for stanton.
Accepted password for stanton from 128.32.75.82 port 2154

[... this was port 2129 in the failed transfer...]

debug1: session_new: init
debug1: session_new: session 0
debug1: Exec command 'ls -la '/c/4nt''
debug1: Entering interactive session.
debug1: fd 7 setting O_NONBLOCK
debug1: fd 8 setting O_NONBLOCK
debug1: fd 10 setting O_NONBLOCK
debug1: server_init_dispatch_13
debug1: server_init_dispatch_15
debug1: tvp!=NULL kid 0 mili 10
debug1: tvp!=NULL kid 0 mili 10
debug1: Received SIGCHLD.

[...the next two lines do not appear in the debug output from the failed
transfer...]

debug1: tvp!=NULL kid 1 mili 100
debug1: tvp!=NULL kid 1 mili 100

[... the next line reports only 67 bytes read/sent in the failed
transfer...]

debug1: End of interactive session; stdin 0, stdout (read 2042, sent 2042),
stde
rr 1543 bytes.
debug1: Command exited with status 0.
debug1: Received exit confirmation.
Closing connection to 128.32.75.82

I started sshd in exactly the same way both times, using "sshd -d -d". The
only difference is that it fails when the output (including stderr) is
redirected to a file.

Richard Stanton


> -----Original Message-----
> From: Richard Stanton [mailto:stanton AT haas DOT berkeley DOT edu]
> Sent: Tuesday, January 23, 2001 12:56 PM
> To: Cygwin
> Subject: Problem using pscp with Cygwin sshd
>
>
> I use sshd on my NT4 machine without trouble - until now, that
> is. I've been trying to use the scp client pscp, which has a very
> nice GUI wrapper around it. Anyway, the problem is that when I
> try to do a directory listing, I only get one file listed. For example:
>
> [c:\program files\i-tree.org\secure ixplorer]pscp.exe -ls
> stanton AT mortgage:/c/scratch
> stanton AT mortgage's password:
> total 99
> -rwx------   1 administ None          169 Sep 30 19:08 #mktex.cnf#
>
> There are actually several files in this directory. The same
> thing happens whether I start sshd from inetd or from the command
> line. I can get a directory listing fine from a Unix machine that
> I have an account on.
>
> It works fine if I start sshd in debug mode at the command line
> using "sshd -d". I get a big environment dump, then all the files
> are listed properly. However, it fails as above when I use "sshd
> -d >& output.out" to redirect all output to a file.
>
> Any idea what might be going on, or anything I can do to provide
> more information?
>
> Richard Stanton
>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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