I do exactly this with Dropbear and WinSCP3 and I have no problems.

David Pitts
IT Services Manager
Reid Library 
University of Western Australia
 
Telephone:   (08) 6488 3492     Fax:  (08) 6488 1012


-----Original Message-----
From: Matt Johnston [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 22 April 2004 1:56 AM
Cc: [EMAIL PROTECTED]
Subject: Re: [leaf-user] Trouble with PuTTY and Dropbear.


On Wed, Apr 21, 2004 at 08:35:39AM -0400, Stirling Westrup wrote:
> I've managed to fix my last problem (libc207 had somehow become
> corrupted...), and am now stuck on another one:
> 
> I've set up dropbear on my firewall and I am using PuTTY to 
> communicate with
> it from my WinXP box. This part of things is working fine. Now I would
like 
> to use pscp to copy some files from my winbox to the firewall, but
this is 
> the response I always get:
> 
> C:\>pscp test.txt [EMAIL PROTECTED]:/tmp/test.txt 
> [EMAIL PROTECTED]'s password:
> Fatal: Server refused to start a shell/command
> 
> Does anyone have any ideas as to what could be causing this? Its not
> mentioned in pscp's documentation and dropbear doesn't seem to have
any.

It seems you've found a bug in Dropbear.

pscp is trying to use sftp first, which fails because Dropbear has been
compiled without sftp support. pscp is then retrying with scp, however
Dropbear has a bug where only the first request per session is
recognised
- it should be only recognising the first _successful_ request per
session.

I've made a patch which fixes the issue, however I don't have a build
environment for LEAF(-uclibc) handy. I've attached it if someone wants
to build an updated package for LEAF. I'll include this fix in my next
release.

In the meantime, using a different scp client such as WinSCP should
probably work, though you might need to force it not to try sftp. 

Thanks for the report, apologies for the inconvenience.

Cheers,
Matt 

... The list wouldn't let me send a patch, so I've put it at 
http://matt.ucc.asn.au/fixed-pscp.patch
Dropbear Developer



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to