Yo All! I understand why we do not have sftp in openssh, but it would be nice if we could make it so that when an SSH.COM scp2 client makes a connection to an OpenSSH V2 daemon that it does not hang.... Any ideas or do I need to dig a bit on this? Here is what the sshd says when I conenct to it from scp2: debug: session_open: session 0: link with channel 0 debug: confirm session debug: callback start debug: session_by_channel: session 0 channel 0 debug: session_input_channel_req: session 0 channel 0 request subsystem reply 1 subsystem request for sftp subsystem request for sftp failed, subsystem not found debug: callback done debug: channel 0: rcvd close Then they both hang. If I ^C the sshd then the connection drops. It looks very close to working, it detects the error and tries to close, it just not get there. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701 gem at rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676
Yo All! On Thu, 31 Aug 2000, Gary E. Miller wrote:> I understand why we do not have sftp in openssh, but it would be nice > if we could make it so that when an SSH.COM scp2 client makes a connection > to an OpenSSH V2 daemon that it does not hang....After a little checking I found in /usr/local/etc/sshd_config: #Subsystem sftp /usr/local/sbin/sftpd If I uncomment that line, and restart sshd then the scp2 connection will fail promptly as it should. Even though (because?) sftp is not on that host. Maybe this should be the default? RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701 gem at rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676
I believe it was stated back a few months ago that if one needs the support they can use the sftp-server2 and sftp2 from the ssh commerical using what you show down below. Unless someone feels in the mood to attempt to reverse engineer sftp. I doubt it will get into OpenSSH. On Thu, 31 Aug 2000, Gary E. Miller wrote:> Yo All! > > On Thu, 31 Aug 2000, Gary E. Miller wrote: > > > I understand why we do not have sftp in openssh, but it would be nice > > if we could make it so that when an SSH.COM scp2 client makes a connection > > to an OpenSSH V2 daemon that it does not hang.... > > After a little checking I found in /usr/local/etc/sshd_config: > > #Subsystem sftp /usr/local/sbin/sftpd > > If I uncomment that line, and restart sshd then the scp2 connection > will fail promptly as it should. Even though (because?) sftp is > not on that host. > > Maybe this should be the default? > > RGDS > GARY > --------------------------------------------------------------------------- > Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701 > gem at rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676 > > >
Markus committed sftp support in the OpenBSD tree today. Once it has had some more testing I'm sure this will make its way into the portable release. - todd
Yo Ben! I do not care about sftp support, I just do not want inbound scp2 connections to hang. If we can not do it we should error out cleanly and promptly. Then I can engage my brain and remember to type "scp1" instead of just "scp". I am getting tired of getting support calls on this one. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701 gem at rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676 On Thu, 31 Aug 2000, Ben Lindstrom wrote:> Unless someone feels in the mood to attempt to reverse engineer sftp. I > doubt it will get into OpenSSH.
openssh's sshd behaviour is completely leagal, it seems that scp2 ignores the SSH2_MSG_CHANNEL_FAILURE message. On Thu, Aug 31, 2000 at 05:58:09PM -0700, Gary E. Miller wrote:> Yo All! > > I understand why we do not have sftp in openssh, but it would be nice > if we could make it so that when an SSH.COM scp2 client makes a connection > to an OpenSSH V2 daemon that it does not hang.... > > Any ideas or do I need to dig a bit on this? > > Here is what the sshd says when I conenct to it from scp2: > > debug: session_open: session 0: link with channel 0 > debug: confirm session > debug: callback start > debug: session_by_channel: session 0 channel 0 > debug: session_input_channel_req: session 0 channel 0 request subsystem reply 1 > subsystem request for sftp > subsystem request for sftp failed, subsystem not found > debug: callback done > debug: channel 0: rcvd close > > Then they both hang. If I ^C the sshd then the connection drops. > It looks very close to working, it detects the error and tries > to close, it just not get there. > > RGDS > GARY > --------------------------------------------------------------------------- > Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701 > gem at rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676 > >