public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: sftp
@ 2001-04-02 11:44 Karl M
  0 siblings, 0 replies; 33+ messages in thread
From: Karl M @ 2001-04-02 11:44 UTC (permalink / raw)
  To: cygwin

Hi All...

I have an sftp problem also. It works on some hosts but not on others. See 
the (sanitized) response below. Both host2 and host3 are win2k boxes and so 
is host1.

user@host1 ~
$ sftp host2
Connecting to host2...
user@host2's password:
sftp> exit

user@host1 ~
$ sftp host3
Connecting to host3...
user@host3's password:
Request for subsystem 'sftp' failed on channel 0
Connection closed

This problem has existed since before we did the "use pipes" fix to sshd. 
This pushes the differences in behavior to the sshd side of the link.

Any thoughts?

For now I use scp because that works on all of my hosts.


Thanks,

...Karl


>From: Corinna Vinschen <cygwin@cygwin.com>
>To: cygwin@cygwin.com
>Subject: Re: sftp
>Date: Mon, 2 Apr 2001 15:58:15 +0200
>
>On Mon, Apr 02, 2001 at 03:31:39PM +0200, Jacek Trzcinski wrote:
> > Hi !
> > I have problem with sftp. After logging to my system, no matter as
> > who(user root or user jacek) I got prompt
> > "sftp>" but after typing "ls" I got directory content and it ends with
> > error "couldn'r read packet: Connection reset by peer". Further, I can
> > check that in home directory of user who tried to use sftp , there is
> > file named "sftp-server.exe.stackdump" which of course contains register
> > values and so on...
> > Where is error ? I add, ssh client for any user work OK and sshd is
> > executed from inetd.
>
>Dunno. You will have to debug that problem.
>
> > BTW new packets. On mirrors nearest me I can not find announced on
> > cygwin list (new ssh for example).
> > New openssh-2.5.2.p2 I took from openssh.org and compiled it but I would
> > like to get new documentation concerning cygwin release of this packet
>
>Feel free to use another mirror. Some mirrors are as overloaded as
>sources.redhat.com was.
>
>Corinna
>
>--
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Developer                                mailto:cygwin@cygwin.com
>Red Hat, Inc.
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* sftp
@ 2007-03-01 20:56 Terry Bailey
  0 siblings, 0 replies; 33+ messages in thread
From: Terry Bailey @ 2007-03-01 20:56 UTC (permalink / raw)
  To: cygwin

Hi,

I am running sftp on Cygwin on Windows 2003.  When I ssh into the server, I 
am confined to my home directory.  That is what I want. That is not the 
case;however, with sftp.  I thought that sftp would follow the same patten 
as ssh since sftp was a subsystem.  What is the best way to limit a user to 
his/her directory with sftp?

Thanks,

Terry Bailey


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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-06  1:54               ` sftp Ronald Hecht
@ 2001-04-06  7:06                 ` Christopher Faylor
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Faylor @ 2001-04-06  7:06 UTC (permalink / raw)
  To: Corinna Vinschen

On Fri, Apr 06, 2001 at 11:05:00AM +0200, Ronald Hecht wrote:
>I tracked down the problem to the "(dp = readdir(dirp)) != NULL)"
>command in process_readdir of sftp-server.c. The readdir function seems
>to crash when it's called the second time. The main difference between
>the first time it's called and the second is the value of
>dirp->__d_dirent.__d_position. At the first time it's zero. The second
>time nonzero (actually the last position of the directory). I set it to
>zero, to see what happens and readdir is working correctly (lists the
>directory again).
>
>Hope, this helps a bit.

Did you look at the readdir code?  Setting __d_position to zero really doesn't
make sense in repeated readdir calls.  I don't think this is a useful debugging
point.  If you are able to debug things to this point, can't you figure out
exactly why it is core dumping?

cgf

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05 23:37             ` sftp Corinna Vinschen
@ 2001-04-06  1:54               ` Ronald Hecht
  2001-04-06  7:06                 ` sftp Christopher Faylor
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-06  1:54 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen schrieb:
> 
> On Thu, Apr 05, 2001 at 07:03:24PM +0200, Ronald Hecht wrote:
> > I'm debugging ..., but wondering why the process_readdir is called
> > twice. Do you have the same thing? Do you get a second SSH2_FXP_READDIR
> > like me? (using -v -v -v Option)
> 
> Yes:
> 
> sftp> ls
> debug3: Sending SSH2_FXP_READDIR I:3
> debug3: Received reply T:104 I:3
> debug3: Received 52 SSH2_FXP_NAME responses
> [...]
> debug3: Sending SSH2_FXP_READDIR I:4
> debug3: Received reply T:101 I:4
> debug3: Received SSH2_FXP_STATUS 1
> debug3: Sent message SSH2_FXP_CLOSE I:5
> debug3: SSH2_FXP_STATUS 0
> sftp>
> 

I tracked down the problem to the "(dp = readdir(dirp)) != NULL)"
command in process_readdir of sftp-server.c. The readdir function seems
to crash when it's called the second time. The main difference between
the first time it's called and the second is the value of
dirp->__d_dirent.__d_position. At the first time it's zero. The second
time nonzero (actually the last position of the directory). I set it to
zero, to see what happens and readdir is working correctly (lists the
directory again).

Hope, this helps a bit.

> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05  9:53           ` sftp Ronald Hecht
@ 2001-04-05 23:37             ` Corinna Vinschen
  2001-04-06  1:54               ` sftp Ronald Hecht
  0 siblings, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-05 23:37 UTC (permalink / raw)
  To: cygwin

On Thu, Apr 05, 2001 at 07:03:24PM +0200, Ronald Hecht wrote:
> I'm debugging ..., but wondering why the process_readdir is called
> twice. Do you have the same thing? Do you get a second SSH2_FXP_READDIR
> like me? (using -v -v -v Option)

Yes:

sftp> ls
debug3: Sending SSH2_FXP_READDIR I:3
debug3: Received reply T:104 I:3
debug3: Received 52 SSH2_FXP_NAME responses
[...]
debug3: Sending SSH2_FXP_READDIR I:4
debug3: Received reply T:101 I:4
debug3: Received SSH2_FXP_STATUS 1
debug3: Sent message SSH2_FXP_CLOSE I:5
debug3: SSH2_FXP_STATUS 0
sftp>

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05  9:06         ` sftp Corinna Vinschen
@ 2001-04-05  9:53           ` Ronald Hecht
  2001-04-05 23:37             ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-05  9:53 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen schrieb:
> 
> On Thu, Apr 05, 2001 at 06:07:37PM +0200, Ronald Hecht wrote:
> > That's what I got with gdb:
> >
> > (gdb) cont
> > Continuing.
> 
> Don't do "cont" before "bt". Just be sure to be in thread 1,
> then "bt".
> 
> Corinna

I'm debugging ..., but wondering why the process_readdir is called
twice. Do you have the same thing? Do you get a second SSH2_FXP_READDIR
like me? (using -v -v -v Option)

> 
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x77f7754b in ?? ()
> >
> > (gdb) bt
> > #0  0x77f7754b in ?? ()
> > #1  0x77f0c51a in ?? ()
> > #2  0x61005755 in _size_of_stack_reserve__ ()
> > #3  0x40298b in process_readdir () at sftp-server.c:773
> > #4  0x403485 in process () at sftp-server.c:997
> > #5  0x4037d2 in main (ac=1, av=0x1a035a18) at sftp-server.c:1104
> > #6  0x61003cea in _size_of_stack_reserve__ ()
> > #7  0x61003f95 in _size_of_stack_reserve__ ()
> > #8  0x61003fe4 in _size_of_stack_reserve__ ()
> > #9  0x40c873 in cygwin_crt0 ()
> >
> > Ronald
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05  8:57       ` sftp Ronald Hecht
@ 2001-04-05  9:06         ` Corinna Vinschen
  2001-04-05  9:53           ` sftp Ronald Hecht
  0 siblings, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-05  9:06 UTC (permalink / raw)
  To: cygwin

On Thu, Apr 05, 2001 at 06:07:37PM +0200, Ronald Hecht wrote:
> That's what I got with gdb:
> 
> (gdb) cont
> Continuing.

Don't do "cont" before "bt". Just be sure to be in thread 1,
then "bt".

Corinna

> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x77f7754b in ?? ()
> 
> (gdb) bt
> #0  0x77f7754b in ?? ()
> #1  0x77f0c51a in ?? ()
> #2  0x61005755 in _size_of_stack_reserve__ ()
> #3  0x40298b in process_readdir () at sftp-server.c:773
> #4  0x403485 in process () at sftp-server.c:997
> #5  0x4037d2 in main (ac=1, av=0x1a035a18) at sftp-server.c:1104
> #6  0x61003cea in _size_of_stack_reserve__ ()
> #7  0x61003f95 in _size_of_stack_reserve__ ()
> #8  0x61003fe4 in _size_of_stack_reserve__ ()
> #9  0x40c873 in cygwin_crt0 ()
> 
> Ronald

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05  8:01     ` sftp Corinna Vinschen
@ 2001-04-05  8:57       ` Ronald Hecht
  2001-04-05  9:06         ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-05  8:57 UTC (permalink / raw)
  To: Corinna Vinschen

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3225 bytes --]

Corinna Vinschen schrieb:
> 
> On Thu, Apr 05, 2001 at 02:04:16PM +0200, Ronald Hecht wrote:
> >
> >
> > Corinna Vinschen schrieb:
> > >
> > > On Wed, Apr 04, 2001 at 07:01:07PM +0200, Ronald Hecht wrote:
> > > > Hi,
> > > >
> > > > i called sftp with -v -v -v and got
> > > >
> > > > sftp> ls
> > > > debug3: Sending SSH2_FXP_READDIR I:3
> > > > debug3: Received reply T:104 I:3
> > > > debug3: Received 38 SSH2_FXP_NAME responses
> > > > d---------   21 administ Domänen-     8192 Apr  16:55 .
> > > > drwxrwxrwx    5 administ Domänen-        0 Jan  09:06 ..
> > > > drwxrwxrwx    2 administ Domänen-        0 Apr  13:38 .autosave
> > > > -rwx------    1 hr55     Domänen-      767 Mar  07:42 .bashrc
> > > >                               ....
> > > > debug3: Sending SSH2_FXP_READDIR I:4
> > > >
> > > > and now it hangs. Seems to me, that the sftp-server did not respond to
> > > > the second SSH2_FXP_READDIR.
> > >
> > > This doesn't help, unfortunately. The connection is made, the
> > > sftp-server (you are using the one I sent yesterday, aren't you?)
> > > is up and running.
> > >
> > > The problem is that I can't reproduce the problem. I have tried
> > > both, RSA and Password authentication, both a local connection
> > > and from a Linux box and with ash, bash and tcsh as login shell.
> > > Either way sftp works as expected.
> > >
> > > We need somebody to seriously debug that problem.
> > >
> >
> > I would do that, but I don't really know how to debug a service or
> > deamon. I've tried with syslog using TRACE (see my last mail), but this
> > isn't really what I understand of debugging, isn't it? Can you or anyone
> > else help me?
> 
> Did you try to reproduce that behaviour when starting sshd from
> the command line using `sshd -d'? If that works, you can start
> sshd from strace:
> 
>         strace -o sshd.strace.out -f C:/cygwin/usr/sbin/sshd -d
> 
> and looking through the strace output.
> 
> Another chance is to connect to your hanging sftp-server using
> gdb. When the program hangs, call `ps' to get the Windows PID
> of sftp-server and call
> 
>         gdb -nw /usr/sbin/sshd WINPID
> 
> Then you can get switch to thread 1
> 
>         thread 1
> 
> and print a stacktrace
> 
>         bt
> 
> which could help.
> 

That's what I got with gdb:

(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x77f7754b in ?? ()

(gdb) bt
#0  0x77f7754b in ?? ()
#1  0x77f0c51a in ?? ()
#2  0x61005755 in _size_of_stack_reserve__ ()
#3  0x40298b in process_readdir () at sftp-server.c:773
#4  0x403485 in process () at sftp-server.c:997
#5  0x4037d2 in main (ac=1, av=0x1a035a18) at sftp-server.c:1104
#6  0x61003cea in _size_of_stack_reserve__ ()
#7  0x61003f95 in _size_of_stack_reserve__ ()
#8  0x61003fe4 in _size_of_stack_reserve__ ()
#9  0x40c873 in cygwin_crt0 ()

Ronald


> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05  4:54   ` sftp Ronald Hecht
@ 2001-04-05  8:01     ` Corinna Vinschen
  2001-04-05  8:57       ` sftp Ronald Hecht
  0 siblings, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-05  8:01 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2356 bytes --]

On Thu, Apr 05, 2001 at 02:04:16PM +0200, Ronald Hecht wrote:
> 
> 
> Corinna Vinschen schrieb:
> > 
> > On Wed, Apr 04, 2001 at 07:01:07PM +0200, Ronald Hecht wrote:
> > > Hi,
> > >
> > > i called sftp with -v -v -v and got
> > >
> > > sftp> ls
> > > debug3: Sending SSH2_FXP_READDIR I:3
> > > debug3: Received reply T:104 I:3
> > > debug3: Received 38 SSH2_FXP_NAME responses
> > > d---------   21 administ Domänen-     8192 Apr  16:55 .
> > > drwxrwxrwx    5 administ Domänen-        0 Jan  09:06 ..
> > > drwxrwxrwx    2 administ Domänen-        0 Apr  13:38 .autosave
> > > -rwx------    1 hr55     Domänen-      767 Mar  07:42 .bashrc
> > >                               ....
> > > debug3: Sending SSH2_FXP_READDIR I:4
> > >
> > > and now it hangs. Seems to me, that the sftp-server did not respond to
> > > the second SSH2_FXP_READDIR.
> > 
> > This doesn't help, unfortunately. The connection is made, the
> > sftp-server (you are using the one I sent yesterday, aren't you?)
> > is up and running.
> > 
> > The problem is that I can't reproduce the problem. I have tried
> > both, RSA and Password authentication, both a local connection
> > and from a Linux box and with ash, bash and tcsh as login shell.
> > Either way sftp works as expected.
> > 
> > We need somebody to seriously debug that problem.
> > 
> 
> I would do that, but I don't really know how to debug a service or
> deamon. I've tried with syslog using TRACE (see my last mail), but this
> isn't really what I understand of debugging, isn't it? Can you or anyone
> else help me?

Did you try to reproduce that behaviour when starting sshd from
the command line using `sshd -d'? If that works, you can start
sshd from strace:

	strace -o sshd.strace.out -f C:/cygwin/usr/sbin/sshd -d

and looking through the strace output.

Another chance is to connect to your hanging sftp-server using
gdb. When the program hangs, call `ps' to get the Windows PID
of sftp-server and call

	gdb -nw /usr/sbin/sshd WINPID

Then you can get switch to thread 1

	thread 1

and print a stacktrace

	bt

which could help.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-05  1:50 ` sftp Corinna Vinschen
@ 2001-04-05  4:54   ` Ronald Hecht
  2001-04-05  8:01     ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-05  4:54 UTC (permalink / raw)
  To: Corinna Vinschen

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1804 bytes --]

Corinna Vinschen schrieb:
> 
> On Wed, Apr 04, 2001 at 07:01:07PM +0200, Ronald Hecht wrote:
> > Hi,
> >
> > i called sftp with -v -v -v and got
> >
> > sftp> ls
> > debug3: Sending SSH2_FXP_READDIR I:3
> > debug3: Received reply T:104 I:3
> > debug3: Received 38 SSH2_FXP_NAME responses
> > d---------   21 administ Domänen-     8192 Apr  16:55 .
> > drwxrwxrwx    5 administ Domänen-        0 Jan  09:06 ..
> > drwxrwxrwx    2 administ Domänen-        0 Apr  13:38 .autosave
> > -rwx------    1 hr55     Domänen-      767 Mar  07:42 .bashrc
> >                               ....
> > debug3: Sending SSH2_FXP_READDIR I:4
> >
> > and now it hangs. Seems to me, that the sftp-server did not respond to
> > the second SSH2_FXP_READDIR.
> 
> This doesn't help, unfortunately. The connection is made, the
> sftp-server (you are using the one I sent yesterday, aren't you?)
> is up and running.
> 
> The problem is that I can't reproduce the problem. I have tried
> both, RSA and Password authentication, both a local connection
> and from a Linux box and with ash, bash and tcsh as login shell.
> Either way sftp works as expected.
> 
> We need somebody to seriously debug that problem.
> 

I would do that, but I don't really know how to debug a service or
deamon. I've tried with syslog using TRACE (see my last mail), but this
isn't really what I understand of debugging, isn't it? Can you or anyone
else help me?


> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  9:50 sftp Ronald Hecht
@ 2001-04-05  1:50 ` Corinna Vinschen
  2001-04-05  4:54   ` sftp Ronald Hecht
  0 siblings, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-05  1:50 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]

On Wed, Apr 04, 2001 at 07:01:07PM +0200, Ronald Hecht wrote:
> Hi,
> 
> i called sftp with -v -v -v and got
> 
> sftp> ls
> debug3: Sending SSH2_FXP_READDIR I:3
> debug3: Received reply T:104 I:3
> debug3: Received 38 SSH2_FXP_NAME responses
> d---------   21 administ Domänen-     8192 Apr  16:55 .
> drwxrwxrwx    5 administ Domänen-        0 Jan  09:06 ..
> drwxrwxrwx    2 administ Domänen-        0 Apr  13:38 .autosave
> -rwx------    1 hr55     Domänen-      767 Mar  07:42 .bashrc
>                               ....
> debug3: Sending SSH2_FXP_READDIR I:4
> 
> and now it hangs. Seems to me, that the sftp-server did not respond to
> the second SSH2_FXP_READDIR.

This doesn't help, unfortunately. The connection is made, the
sftp-server (you are using the one I sent yesterday, aren't you?)
is up and running. 

The problem is that I can't reproduce the problem. I have tried
both, RSA and Password authentication, both a local connection
and from a Linux box and with ash, bash and tcsh as login shell.
Either way sftp works as expected.

We need somebody to seriously debug that problem.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  8:27                 ` sftp Corinna Vinschen
@ 2001-04-04 10:25                   ` Ronald Hecht
  0 siblings, 0 replies; 33+ messages in thread
From: Ronald Hecht @ 2001-04-04 10:25 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen wrote:
> 
> On Wed, Apr 04, 2001 at 03:10:49PM +0200, Ronald Hecht wrote:
...
> 
> A last test, could you please upgrade your Cygwin DLL (just the
> DLL itself) to the latest developers snapshot? If that doesn't
> solve the problem you will have to debug it on your machine.
> 
Using the TRACE function I localized the hang up. The function "readdir"
in Line 753 of sftp-server.c seems to hang when the client calls the
second FXD_READDIR (see my last mail). Contains the dirp variable a
wrong value, handle_to_dir-function not correctly implemented? 

Ronald

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
@ 2001-04-04  9:50 Ronald Hecht
  2001-04-05  1:50 ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-04  9:50 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

Hi,

i called sftp with -v -v -v and got

sftp> ls
debug3: Sending SSH2_FXP_READDIR I:3
debug3: Received reply T:104 I:3
debug3: Received 38 SSH2_FXP_NAME responses
d---------   21 administ Domänen-     8192 Apr  16:55 .
drwxrwxrwx    5 administ Domänen-        0 Jan  09:06 ..
drwxrwxrwx    2 administ Domänen-        0 Apr  13:38 .autosave
-rwx------    1 hr55     Domänen-      767 Mar  07:42 .bashrc
                              ....
debug3: Sending SSH2_FXP_READDIR I:4

and now it hangs. Seems to me, that the sftp-server did not respond to
the second SSH2_FXP_READDIR.

I'm using the latest snapshot of cygwin1.dll.

Ronald

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  6:00               ` sftp Ronald Hecht
@ 2001-04-04  8:27                 ` Corinna Vinschen
  2001-04-04 10:25                   ` sftp Ronald Hecht
  0 siblings, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-04  8:27 UTC (permalink / raw)
  To: cygwin

On Wed, Apr 04, 2001 at 03:10:49PM +0200, Ronald Hecht wrote:
> 
> 
> Corinna Vinschen schrieb:
> > 
> > On Wed, Apr 04, 2001 at 10:13:09AM +0200, Ronald Hecht wrote:
> > > Yes, the install does not copy sshd to in.sshd,
> > > but in the openssh-2.5.2p2.README you say:
> > >
> > >   If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
> > >   following line to your inetd.conf file:
> > >
> > >   sshd stream tcp nowait root /usr/sbin/in.sshd sshd -i
> > >
> > > Instead of copy the file a symlink should be used.
> > 
> > Ok, thanks for the hint. I will change the docs. Better not
> > to copy or symlink but to use sshd as is:
> > 
> >    sshd stream tcp nowait root /usr/sbin/sshd sshd -i
> > 
> > > > I would appreciate if you (and perhaps others with the same problem)
> > > > could test if this sftp-server solves your problem and report it
> > > > to the list.
> > > >
> > > Seems to me, that this is the same I have. Unfortunately, no changes in
> > > behaviour.
> > > I compiled sftp-server myself.
> > > When I do "ls" after showing the dir, i get ID mismatch (3! = 4)
> > > whatever this meens ...
> > 
> > Which login shell do you use? What's the shell in your /etc/passwd
> > entry? Could you change it to /bin/sh, /bin/bash and /bin/tcsh
> > just for testing?
> > 
> 
> I've tried all the shells, but no change :o(
> Does it depend on the /etc/profile? If yes, how looks yours?

I'm using tcsh which had raised the problem in scp in the OpenSSH
2.5.2p2-2 version. And tcsh doesn't use profile, so...

I don't know. My sftp-server (I'm now using the version which I sent
this morning) works seamlessly.

A last test, could you please upgrade your Cygwin DLL (just the
DLL itself) to the latest developers snapshot? If that doesn't
solve the problem you will have to debug it on your machine.

BTW, the sftp debug output you sent me a few hours ago looks
fine. Nothing of interest in it.

BTW2: Please send these stuff to the list, not to my private email
address.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  7:50           ` sftp Charles S. Wilson
@ 2001-04-04  7:53             ` Charles S. Wilson
  0 siblings, 0 replies; 33+ messages in thread
From: Charles S. Wilson @ 2001-04-04  7:53 UTC (permalink / raw)
  To: Corinna Vinschen

"Charles S. Wilson" wrote:
> 
> On a whim, I tried changing user contexts.  While ssh/scp work fine, 
                                              ^^^^^^^^^^^^^^^^^^^^^^^^
written before I actually tested. As the test report below this point in
the original message shows, ssh/scp do NOT work fine when changing user
context.  I suspect my NT4 cygwin installation is hosed.

--Chuck

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  0:36         ` sftp Corinna Vinschen
  2001-04-04  1:02           ` sftp Ronald Hecht
  2001-04-04  5:37           ` sftp Jacek Trzcinski
@ 2001-04-04  7:50           ` Charles S. Wilson
  2001-04-04  7:53             ` sftp Charles S. Wilson
  2 siblings, 1 reply; 33+ messages in thread
From: Charles S. Wilson @ 2001-04-04  7:50 UTC (permalink / raw)
  To: Corinna Vinschen

After replacing the sftp-server.exe with the test version Corinna posted
to the list:

On WinNT4sp6 + cygwin1-20010401.dll, sshd runs as a service under
Administrator account (with all appropriate rights).

Administrator@192.168.0.2# sftp Administrator@192.168.0.2 
sftp> put  (fine)
sftp> get  (fine)
sftp> ls   (hangs)

Administrator@192.168.0.2# scp Administrator@192.168.0.2:MACROS.TXT .
(works)
Administrator@192.168.0.2# ssh -l Administrator 192.168.0.2 
(works)

On a whim, I tried changing user contexts.  While ssh/scp work fine, and
the sftp login works okay, very little within sftp works.  I'm not sure
if this is a new problem with the test version of sftp-server, or if it
was pre-existing.

Administrator@192.168.0.2# sftp cwilson@192.168.0.2
sftp> put makewhatis (this file exists in the current local directory)
Uploading makewhatis to makewhatis
Couldn't get handle: No such file or directory
sftp> get hello.c (this file exists in cwilson's home dir)
Couldn't stat remote file: No such file or directory
File "/e/Users/cwilson/hello.c" not found
sftp> ls
Couldn't get handle: no such file or directory
sftp> (doesn't hang)

Administrator@192.168.0.2# scp cwilson@192.168.0.2:hello.c . (hello.c
exists in cwilson's home dir)
scp: hello.c: No such file or directory

Administrator@192.168.0.2# ssh -l cwilson 192.168.0.2
bash-2.04$   (!!! can't read my .bashrc file!)
bash-2.04$ ls
ls: .: No such file or directory

Now, this seems to be new.  For some reason, user-context changes aren't
working very well as of p2-3.  This *used* to work.  I am using password
auth, and Adminstrator, the account under which the sshd service is
running, has the appropriate rights.

On W2Ksp1 + cygwin1-20010401.dll, sshd runs as a service under
Administrator account (with all appropriate rights).

Administrator@192.168.0.5# sftp Administrator@192.168.0.5 
sftp> put  (fine)
sftp> get  (fine)
sftp> ls   (fine; no hang)

Administrator@192.168.0.5# sftp cwilson@192.168.0.5
sftp> put  (fine)
sftp> get  (fine)
sftp> ls   (fine; no hang)

This is bizarre. I'm starting to wonder if my NT4 installation is
seriously hosed.

--Chuck

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  1:14             ` sftp Corinna Vinschen
@ 2001-04-04  6:00               ` Ronald Hecht
  2001-04-04  8:27                 ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-04  6:00 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen schrieb:
> 
> On Wed, Apr 04, 2001 at 10:13:09AM +0200, Ronald Hecht wrote:
> > Yes, the install does not copy sshd to in.sshd,
> > but in the openssh-2.5.2p2.README you say:
> >
> >   If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
> >   following line to your inetd.conf file:
> >
> >   sshd stream tcp nowait root /usr/sbin/in.sshd sshd -i
> >
> > Instead of copy the file a symlink should be used.
> 
> Ok, thanks for the hint. I will change the docs. Better not
> to copy or symlink but to use sshd as is:
> 
>    sshd stream tcp nowait root /usr/sbin/sshd sshd -i
> 
> > > I would appreciate if you (and perhaps others with the same problem)
> > > could test if this sftp-server solves your problem and report it
> > > to the list.
> > >
> > Seems to me, that this is the same I have. Unfortunately, no changes in
> > behaviour.
> > I compiled sftp-server myself.
> > When I do "ls" after showing the dir, i get ID mismatch (3! = 4)
> > whatever this meens ...
> 
> Which login shell do you use? What's the shell in your /etc/passwd
> entry? Could you change it to /bin/sh, /bin/bash and /bin/tcsh
> just for testing?
> 

I've tried all the shells, but no change :o(
Does it depend on the /etc/profile? If yes, how looks yours?

> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  0:36         ` sftp Corinna Vinschen
  2001-04-04  1:02           ` sftp Ronald Hecht
@ 2001-04-04  5:37           ` Jacek Trzcinski
  2001-04-04  7:50           ` sftp Charles S. Wilson
  2 siblings, 0 replies; 33+ messages in thread
From: Jacek Trzcinski @ 2001-04-04  5:37 UTC (permalink / raw)
  To: Corinna Vinschen, cygwin

Hi !
Unfortunately, nothing changes at me. Using "ls" causes effects I
described in my previous e-mail concerning
sftp - listing is OK but it ends with error "Couldn't read packet.
Conection reset by peer" and in home 
directory I get stackdump file generated by sftp-server. I add I use
latest version of cygwin1.dll from snapshot and openssh version
2.5.2p2-2. Latest version of openssh I will use when at last I get to
any mirror that has it.
BWT -  why "lls" works without any problems ?


Jacek

Corinna Vinschen wrote:
> 
> On Tue, Apr 03, 2001 at 10:35:39PM +0200, Ronald Hecht wrote:
> > Ok, I have had an old sshd.exe named (copied to) in.sshd.exe. inetd has used
> > this one.
> > I replaced it with a symlink. Probably this should be mentioned in the doc
> > of openssh. I'm now using all the new versions.
> 
> What do you want to put into the FAQ? It's not a typical problem
> of the OpenSSH package since it never copied sshd to in.sshd.
> 
> > Unfortunately, this hasn't solved the problem. After "ls" sftp hangs. I think
> > the
> > bug is in the sftp-server.exe. If I type ctrl-c I get a sftp-server-dump.
> 
> Works for me. This doesn't mean that sftp/sftp-server has no bugs.
> It's pretty new in the OpenSSH package.
> 
> Anyway, I have a strong suspicion to know what the problem is.
> I have attached a bzip2'd sftp-server.exe file.
> 
> I would appreciate if you (and perhaps others with the same problem)
> could test if this sftp-server solves your problem and report it
> to the list.
> 
> Thanks in advance,
> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
>   ------------------------------------------------------------------------
>                           Name: sftp-server.exe.bz2
>    sftp-server.exe.bz2    Type: unspecified type (application/octet-stream)
>                       Encoding: base64
> 
>   ------------------------------------------------------------------------
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  1:02           ` sftp Ronald Hecht
@ 2001-04-04  1:14             ` Corinna Vinschen
  2001-04-04  6:00               ` sftp Ronald Hecht
  0 siblings, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-04  1:14 UTC (permalink / raw)
  To: cygwin

On Wed, Apr 04, 2001 at 10:13:09AM +0200, Ronald Hecht wrote:
> Yes, the install does not copy sshd to in.sshd,
> but in the openssh-2.5.2p2.README you say:
> 
>   If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
>   following line to your inetd.conf file:
> 
>   sshd stream tcp nowait root /usr/sbin/in.sshd sshd -i
> 
> Instead of copy the file a symlink should be used.

Ok, thanks for the hint. I will change the docs. Better not
to copy or symlink but to use sshd as is:

   sshd stream tcp nowait root /usr/sbin/sshd sshd -i

> > I would appreciate if you (and perhaps others with the same problem)
> > could test if this sftp-server solves your problem and report it
> > to the list.
> > 
> Seems to me, that this is the same I have. Unfortunately, no changes in
> behaviour.
> I compiled sftp-server myself.
> When I do "ls" after showing the dir, i get ID mismatch (3! = 4)
> whatever this meens ...

Which login shell do you use? What's the shell in your /etc/passwd
entry? Could you change it to /bin/sh, /bin/bash and /bin/tcsh
just for testing?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-04  0:36         ` sftp Corinna Vinschen
@ 2001-04-04  1:02           ` Ronald Hecht
  2001-04-04  1:14             ` sftp Corinna Vinschen
  2001-04-04  5:37           ` sftp Jacek Trzcinski
  2001-04-04  7:50           ` sftp Charles S. Wilson
  2 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-04  1:02 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen schrieb:
> 
> On Tue, Apr 03, 2001 at 10:35:39PM +0200, Ronald Hecht wrote:
> > Ok, I have had an old sshd.exe named (copied to) in.sshd.exe. inetd has used
> > this one.
> > I replaced it with a symlink. Probably this should be mentioned in the doc
> > of openssh. I'm now using all the new versions.
> 
> What do you want to put into the FAQ? It's not a typical problem
> of the OpenSSH package since it never copied sshd to in.sshd.
> 

Yes, the install does not copy sshd to in.sshd,
but in the openssh-2.5.2p2.README you say:

  If starting via inetd, copy sshd to eg. /usr/sbin/in.sshd and add the
  following line to your inetd.conf file:

  sshd stream tcp nowait root /usr/sbin/in.sshd sshd -i

Instead of copy the file a symlink should be used.


> > Unfortunately, this hasn't solved the problem. After "ls" sftp hangs. I think
> > the
> > bug is in the sftp-server.exe. If I type ctrl-c I get a sftp-server-dump.
> 
> Works for me. This doesn't mean that sftp/sftp-server has no bugs.
> It's pretty new in the OpenSSH package.
> 

I didn't know that sftp is that new - sorry.

> Anyway, I have a strong suspicion to know what the problem is.
> I have attached a bzip2'd sftp-server.exe file.
> 
> I would appreciate if you (and perhaps others with the same problem)
> could test if this sftp-server solves your problem and report it
> to the list.
> 
Seems to me, that this is the same I have. Unfortunately, no changes in
behaviour.
I compiled sftp-server myself.
When I do "ls" after showing the dir, i get ID mismatch (3! = 4)
whatever this meens ...

> Thanks in advance,
> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
>   ------------------------------------------------------------------------
>                                  Name: sftp-server.exe.bz2
>    sftp-server.exe.bz2           Type: Ohne Angabe (application/octet-stream)
>                              Encoding: base64
>                       Download-Status: Nicht mit der Nachricht heruntergeladen
> 
>   ------------------------------------------------------------------------
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03 13:37       ` sftp Ronald Hecht
@ 2001-04-04  0:36         ` Corinna Vinschen
  2001-04-04  1:02           ` sftp Ronald Hecht
                             ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-04  0:36 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]

On Tue, Apr 03, 2001 at 10:35:39PM +0200, Ronald Hecht wrote:
> Ok, I have had an old sshd.exe named (copied to) in.sshd.exe. inetd has used
> this one.
> I replaced it with a symlink. Probably this should be mentioned in the doc
> of openssh. I'm now using all the new versions.

What do you want to put into the FAQ? It's not a typical problem
of the OpenSSH package since it never copied sshd to in.sshd.

> Unfortunately, this hasn't solved the problem. After "ls" sftp hangs. I think
> the
> bug is in the sftp-server.exe. If I type ctrl-c I get a sftp-server-dump.

Works for me. This doesn't mean that sftp/sftp-server has no bugs.
It's pretty new in the OpenSSH package.

Anyway, I have a strong suspicion to know what the problem is.
I have attached a bzip2'd sftp-server.exe file. 

I would appreciate if you (and perhaps others with the same problem)
could test if this sftp-server solves your problem and report it
to the list.

Thanks in advance,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

[-- Attachment #2: sftp-server.exe.bz2 --]
[-- Type: application/x-bzip2, Size: 24989 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
@ 2001-04-03 14:50 Karl M
  0 siblings, 0 replies; 33+ messages in thread
From: Karl M @ 2001-04-03 14:50 UTC (permalink / raw)
  To: ronald.hecht; +Cc: cygwin

Hi Ronald...

You were correct. I forgot to enable sftp on a few systems.

Thanks,

...Karl


>From: Ronald Hecht <ronald.hecht@gmx.de>
>To: Karl M <karlm30@hotmail.com>
>Subject: Re: sftp
>Date: Tue, 03 Apr 2001 22:41:50 +0200
>
>
>
>Karl M schrieb:
>
> > Hi Corinna...
> >
> > I just downloaded the OpenSSH2.5.2p2-3 and installed it. I still get
> >
> > user@host ~
> > $ sftp localhost
> > Connecting to localhost...
> > user@localhost's password:
> > Request for subsystem 'sftp' failed on channel 0
> > Connection closed
> >
>
>Did you added the sftp subsystem to your /etc/sshd_config ?
>
> >
> > from my win2k box but it works fine on other win2k boxes (both working 
>and
> > non-working are win2k pro sp1).
> >
> > Thanks,
> >
> > ...Karl
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > --
> > Want to unsubscribe from this list?
> > Check out: http://cygwin.com/ml/#unsubscribe-simple
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03  9:29     ` sftp Corinna Vinschen
  2001-04-03 13:37       ` sftp Ronald Hecht
@ 2001-04-03 13:39       ` Ronald Hecht
  1 sibling, 0 replies; 33+ messages in thread
From: Ronald Hecht @ 2001-04-03 13:39 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen wrote:

> On Tue, Apr 03, 2001 at 05:05:16PM +0200, Ronald Hecht wrote:
> >
> >
> > Corinna Vinschen wrote:
> > >
> > > On Tue, Apr 03, 2001 at 03:10:57PM +0200, Ronald Hecht wrote:
> > > > Hello,
> > > >
> > > > anyone solved the sftp problems?
> > > >
> > > > If I do "ls" it shows the directory, but hangs up after this.
> > >
> > > Could you please try the latest OpenSSH-2.5.2p2-3 version
> > > which I uploaded yesterday. It should have arrived on the
> > > mirrors already.
> > >
> >
> > I have the latest version, but I'm wondering about the remote software
> > version OpenSSH2.3.0_p1 in this package. I got this info with -v option.
> > The behaviour seems to depend on how the sshd is invoced - inetd or
> > srvany. Whith inetd after ls it hangs and whith srvany it hangs
> > immediately after log on.
>
> Apparently you haven't installed everything correctly.
> If the remote sshd reports version OpenSSH2.3.0_p1 you
> didn't update the sshd or you have started another
> version which still is on your system. Does your inetd.conf
> contain a path /usr/local/sbin/sshd, perhaps?

Ok, I have had an old sshd.exe named (copied to) in.sshd.exe. inetd has used
this one.
I replaced it with a symlink. Probably this should be mentioned in the doc
of openssh. I'm now using all the new versions.

Unfortunately, this hasn't solved the problem. After "ls" sftp hangs. I think
the
bug is in the sftp-server.exe. If I type ctrl-c I get a sftp-server-dump.

>
> Did you stop sshd before updating? Otherwise setup cannot
> replace sshd.
>
> Are you sure having not another cygwin1.dll on your system?
>

Yes I'm sure. Checked with Filemon.

>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                               mailto:cygwin@cygwin.com
> Red Hat, Inc.
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple




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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03  9:29     ` sftp Corinna Vinschen
@ 2001-04-03 13:37       ` Ronald Hecht
  2001-04-04  0:36         ` sftp Corinna Vinschen
  2001-04-03 13:39       ` sftp Ronald Hecht
  1 sibling, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-03 13:37 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen wrote:

> On Tue, Apr 03, 2001 at 05:05:16PM +0200, Ronald Hecht wrote:
> >
> >
> > Corinna Vinschen wrote:
> > >
> > > On Tue, Apr 03, 2001 at 03:10:57PM +0200, Ronald Hecht wrote:
> > > > Hello,
> > > >
> > > > anyone solved the sftp problems?
> > > >
> > > > If I do "ls" it shows the directory, but hangs up after this.
> > >
> > > Could you please try the latest OpenSSH-2.5.2p2-3 version
> > > which I uploaded yesterday. It should have arrived on the
> > > mirrors already.
> > >
> >
> > I have the latest version, but I'm wondering about the remote software
> > version OpenSSH2.3.0_p1 in this package. I got this info with -v option.
> > The behaviour seems to depend on how the sshd is invoced - inetd or
> > srvany. Whith inetd after ls it hangs and whith srvany it hangs
> > immediately after log on.
>
> Apparently you haven't installed everything correctly.
> If the remote sshd reports version OpenSSH2.3.0_p1 you
> didn't update the sshd or you have started another
> version which still is on your system. Does your inetd.conf
> contain a path /usr/local/sbin/sshd, perhaps?

Ok, I have had an old sshd.exe named (copied to) in.sshd.exe. inetd has used
this one.
I replaced it with a symlink. Probably this should be mentioned in the doc
of openssh. I'm now using all the new versions.

Unfortunately, this hasn't solved the problem. After "ls" sftp hangs. I think
the
bug is in the sftp-server.exe. If I type ctrl-c I get a sftp-server-dump.

>
> Did you stop sshd before updating? Otherwise setup cannot
> replace sshd.

>
> Are you sure having not another cygwin1.dll on your system?
>

Yes I'm sure. Checked with Filemon.

>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                               mailto:cygwin@cygwin.com
> Red Hat, Inc.
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple


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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03  6:00 sftp Ronald Hecht
  2001-04-03  6:55 ` sftp Corinna Vinschen
@ 2001-04-03 12:24 ` Charles Wilson
  1 sibling, 0 replies; 33+ messages in thread
From: Charles Wilson @ 2001-04-03 12:24 UTC (permalink / raw)
  To: Ronald Hecht; +Cc: cygwin

On Tue, 3 Apr 2001, Ronald Hecht wrote:

> Hello,
> 
> anyone solved the sftp problems?

Nope. It only seems to affect some of us.

> If I do "ls" it shows the directory, but hangs up after this.

Yep, that's my symptom.  (Later versions coredump).  It's on my todo list,
but I haven't had a chance to try and isolate/debug the
problem.  (However, I wouldn't discourage anyone ELSE who is experiencing
the problem from ALSO debugging it...)

--Chuck



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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
@ 2001-04-03 11:57 Karl M
  0 siblings, 0 replies; 33+ messages in thread
From: Karl M @ 2001-04-03 11:57 UTC (permalink / raw)
  To: cygwin

Hi Corinna...

I just downloaded the OpenSSH2.5.2p2-3 and installed it. I still get

user@host ~
$ sftp localhost
Connecting to localhost...
user@localhost's password:
Request for subsystem 'sftp' failed on channel 0
Connection closed

from my win2k box but it works fine on other win2k boxes (both working and 
non-working are win2k pro sp1).

Thanks,

...Karl
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03  7:54   ` sftp Ronald Hecht
@ 2001-04-03  9:29     ` Corinna Vinschen
  2001-04-03 13:37       ` sftp Ronald Hecht
  2001-04-03 13:39       ` sftp Ronald Hecht
  0 siblings, 2 replies; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-03  9:29 UTC (permalink / raw)
  To: cygwin

On Tue, Apr 03, 2001 at 05:05:16PM +0200, Ronald Hecht wrote:
> 
> 
> Corinna Vinschen wrote:
> > 
> > On Tue, Apr 03, 2001 at 03:10:57PM +0200, Ronald Hecht wrote:
> > > Hello,
> > >
> > > anyone solved the sftp problems?
> > >
> > > If I do "ls" it shows the directory, but hangs up after this.
> > 
> > Could you please try the latest OpenSSH-2.5.2p2-3 version
> > which I uploaded yesterday. It should have arrived on the
> > mirrors already.
> > 
> 
> I have the latest version, but I'm wondering about the remote software
> version OpenSSH2.3.0_p1 in this package. I got this info with -v option.
> The behaviour seems to depend on how the sshd is invoced - inetd or
> srvany. Whith inetd after ls it hangs and whith srvany it hangs
> immediately after log on.

Apparently you haven't installed everything correctly.
If the remote sshd reports version OpenSSH2.3.0_p1 you
didn't update the sshd or you have started another
version which still is on your system. Does your inetd.conf
contain a path /usr/local/sbin/sshd, perhaps?

Did you stop sshd before updating? Otherwise setup cannot 
replace sshd.

Are you sure having not another cygwin1.dll on your system?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03  6:55 ` sftp Corinna Vinschen
@ 2001-04-03  7:54   ` Ronald Hecht
  2001-04-03  9:29     ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Ronald Hecht @ 2001-04-03  7:54 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen wrote:
> 
> On Tue, Apr 03, 2001 at 03:10:57PM +0200, Ronald Hecht wrote:
> > Hello,
> >
> > anyone solved the sftp problems?
> >
> > If I do "ls" it shows the directory, but hangs up after this.
> 
> Could you please try the latest OpenSSH-2.5.2p2-3 version
> which I uploaded yesterday. It should have arrived on the
> mirrors already.
> 

I have the latest version, but I'm wondering about the remote software
version OpenSSH2.3.0_p1 in this package. I got this info with -v option.
The behaviour seems to depend on how the sshd is invoced - inetd or
srvany. Whith inetd after ls it hangs and whith srvany it hangs
immediately after log on.

Ronald

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-03  6:00 sftp Ronald Hecht
@ 2001-04-03  6:55 ` Corinna Vinschen
  2001-04-03  7:54   ` sftp Ronald Hecht
  2001-04-03 12:24 ` sftp Charles Wilson
  1 sibling, 1 reply; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-03  6:55 UTC (permalink / raw)
  To: cygwin

On Tue, Apr 03, 2001 at 03:10:57PM +0200, Ronald Hecht wrote:
> Hello,
> 
> anyone solved the sftp problems?
> 
> If I do "ls" it shows the directory, but hangs up after this.

Could you please try the latest OpenSSH-2.5.2p2-3 version
which I uploaded yesterday. It should have arrived on the
mirrors already.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* sftp
@ 2001-04-03  6:00 Ronald Hecht
  2001-04-03  6:55 ` sftp Corinna Vinschen
  2001-04-03 12:24 ` sftp Charles Wilson
  0 siblings, 2 replies; 33+ messages in thread
From: Ronald Hecht @ 2001-04-03  6:00 UTC (permalink / raw)
  To: cygwin

Hello,

anyone solved the sftp problems?

If I do "ls" it shows the directory, but hangs up after this.

Ronald

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
@ 2001-04-02 11:44 Karl M
  0 siblings, 0 replies; 33+ messages in thread
From: Karl M @ 2001-04-02 11:44 UTC (permalink / raw)
  To: cygwin

Hi All...

I have an sftp problem also. It works on some hosts but not on others. See 
the (sanitized) response below. Both host2 and host3 are win2k boxes and so 
is host1.

user@host1 ~
$ sftp host2
Connecting to host2...
user@host2's password:
sftp> exit

user@host1 ~
$ sftp host3
Connecting to host3...
user@host3's password:
Request for subsystem 'sftp' failed on channel 0
Connection closed

This problem has existed since before we did the "use pipes" fix to sshd. 
This pushes the differences in behavior to the sshd side of the link.

Any thoughts?

For now I use scp because that works on all of my hosts.


Thanks,

...Karl


>From: Corinna Vinschen <cygwin@cygwin.com>
>To: cygwin@cygwin.com
>Subject: Re: sftp
>Date: Mon, 2 Apr 2001 15:58:15 +0200
>
>On Mon, Apr 02, 2001 at 03:31:39PM +0200, Jacek Trzcinski wrote:
> > Hi !
> > I have problem with sftp. After logging to my system, no matter as
> > who(user root or user jacek) I got prompt
> > "sftp>" but after typing "ls" I got directory content and it ends with
> > error "couldn'r read packet: Connection reset by peer". Further, I can
> > check that in home directory of user who tried to use sftp , there is
> > file named "sftp-server.exe.stackdump" which of course contains register
> > values and so on...
> > Where is error ? I add, ssh client for any user work OK and sshd is
> > executed from inetd.
>
>Dunno. You will have to debug that problem.
>
> > BTW new packets. On mirrors nearest me I can not find announced on
> > cygwin list (new ssh for example).
> > New openssh-2.5.2.p2 I took from openssh.org and compiled it but I would
> > like to get new documentation concerning cygwin release of this packet
>
>Feel free to use another mirror. Some mirrors are as overloaded as
>sources.redhat.com was.
>
>Corinna
>
>--
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Developer                                mailto:cygwin@cygwin.com
>Red Hat, Inc.
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: sftp
  2001-04-02  6:39 sftp Jacek Trzcinski
@ 2001-04-02  6:58 ` Corinna Vinschen
  0 siblings, 0 replies; 33+ messages in thread
From: Corinna Vinschen @ 2001-04-02  6:58 UTC (permalink / raw)
  To: cygwin

On Mon, Apr 02, 2001 at 03:31:39PM +0200, Jacek Trzcinski wrote:
> Hi !
> I have problem with sftp. After logging to my system, no matter as
> who(user root or user jacek) I got prompt
> "sftp>" but after typing "ls" I got directory content and it ends with
> error "couldn'r read packet: Connection reset by peer". Further, I can
> check that in home directory of user who tried to use sftp , there is
> file named "sftp-server.exe.stackdump" which of course contains register
> values and so on...
> Where is error ? I add, ssh client for any user work OK and sshd is
> executed from inetd.

Dunno. You will have to debug that problem.

> BTW new packets. On mirrors nearest me I can not find announced on
> cygwin list (new ssh for example).
> New openssh-2.5.2.p2 I took from openssh.org and compiled it but I would
> like to get new documentation concerning cygwin release of this packet

Feel free to use another mirror. Some mirrors are as overloaded as
sources.redhat.com was.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* sftp
@ 2001-04-02  6:39 Jacek Trzcinski
  2001-04-02  6:58 ` sftp Corinna Vinschen
  0 siblings, 1 reply; 33+ messages in thread
From: Jacek Trzcinski @ 2001-04-02  6:39 UTC (permalink / raw)
  To: cygwin

Hi !
I have problem with sftp. After logging to my system, no matter as
who(user root or user jacek) I got prompt
"sftp>" but after typing "ls" I got directory content and it ends with
error "couldn'r read packet: Connection reset by peer". Further, I can
check that in home directory of user who tried to use sftp , there is
file named "sftp-server.exe.stackdump" which of course contains register
values and so on...
Where is error ? I add, ssh client for any user work OK and sshd is
executed from inetd.

BTW new packets. On mirrors nearest me I can not find announced on
cygwin list (new ssh for example).
New openssh-2.5.2.p2 I took from openssh.org and compiled it but I would
like to get new documentation concerning cygwin release of this packet

Jacek.

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2007-03-01 20:56 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-02 11:44 sftp Karl M
  -- strict thread matches above, loose matches on Subject: below --
2007-03-01 20:56 sftp Terry Bailey
2001-04-04  9:50 sftp Ronald Hecht
2001-04-05  1:50 ` sftp Corinna Vinschen
2001-04-05  4:54   ` sftp Ronald Hecht
2001-04-05  8:01     ` sftp Corinna Vinschen
2001-04-05  8:57       ` sftp Ronald Hecht
2001-04-05  9:06         ` sftp Corinna Vinschen
2001-04-05  9:53           ` sftp Ronald Hecht
2001-04-05 23:37             ` sftp Corinna Vinschen
2001-04-06  1:54               ` sftp Ronald Hecht
2001-04-06  7:06                 ` sftp Christopher Faylor
2001-04-03 14:50 sftp Karl M
2001-04-03 11:57 sftp Karl M
2001-04-03  6:00 sftp Ronald Hecht
2001-04-03  6:55 ` sftp Corinna Vinschen
2001-04-03  7:54   ` sftp Ronald Hecht
2001-04-03  9:29     ` sftp Corinna Vinschen
2001-04-03 13:37       ` sftp Ronald Hecht
2001-04-04  0:36         ` sftp Corinna Vinschen
2001-04-04  1:02           ` sftp Ronald Hecht
2001-04-04  1:14             ` sftp Corinna Vinschen
2001-04-04  6:00               ` sftp Ronald Hecht
2001-04-04  8:27                 ` sftp Corinna Vinschen
2001-04-04 10:25                   ` sftp Ronald Hecht
2001-04-04  5:37           ` sftp Jacek Trzcinski
2001-04-04  7:50           ` sftp Charles S. Wilson
2001-04-04  7:53             ` sftp Charles S. Wilson
2001-04-03 13:39       ` sftp Ronald Hecht
2001-04-03 12:24 ` sftp Charles Wilson
2001-04-02 11:44 sftp Karl M
2001-04-02  6:39 sftp Jacek Trzcinski
2001-04-02  6:58 ` sftp Corinna Vinschen

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).