problem with sftp & huawei switches

Darren Tucker dtucker at zip.com.au
Mon Nov 5 06:18:50 EST 2007


On Nov 4, 2007 10:44 AM, Darren Tucker <dtucker at zip.com.au> wrote:
> (resend, my previous reply was from a non-subscribed address)
>
> On Nov 4, 2007 4:39 AM, Milan Kocian <milon at wq.cz> wrote:
> > I have the problem with sftp, I can't read files and dirs from huawei
> > switches. I see:
> >
> > mm:/home/milon# sftp 10.1.1.30:vrpcfg.cfg .
> > Connecting to 10.1.1.30...
> > root at 10.1.1.30's password:
> > Couldn't stat remote file: Operation unsupported
> > File "flash:/flash:/vrpcfg.cfg" not found.
> > Received disconnect from 10.1.1.30: 2: The connection is closed by
> > SSH Server
> > Current FSM is SSH_Main_Disconnect
>
>
> Looks like your switch doesn't support the stat() operation, which
> sftp(1) uses before the download and will abort the download if the
> stat fails.
>
> You can try this patch, which is against OpenBSD's -current but should
> apply to 4.7 and 4.6 as well (and yeah, I know "goto" is bad, this is
> the minimum change to test the theory.)

Oops, now with patch.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openbsd-sftp-statxfer.patch.txt
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20071104/f4ce86e5/attachment.txt 


More information about the openssh-unix-dev mailing list