------=_Part_23741_13897160.1194203930422
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Nov 4, 2007 10:44 AM, Darren Tucker wrote:
> (resend, my previous reply was from a non-subscribed address)
>
> On Nov 4, 2007 4:39 AM, Milan Kocian 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@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.

------=_Part_23741_13897160.1194203930422
Content-Type: text/plain; name=openbsd-sftp-statxfer.patch.txt
Content-Transfer-Encoding: base64
X-Attachment-Id: f_f8ly58nr0
Content-Disposition: attachment; filename=openbsd-sftp-statxfer.patch.txt

SW5kZXg6IHNmdHAtY2xpZW50LmMKPT09PT09PT09PT09PT09PT 09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZm lsZTogL2N2cy9zcmMvdXNyLmJp
bi9zc2gvc2Z0cC1jbGllbnQuYyx2CnJldHJpZXZpbmcgcmV2aX Npb24gMS43NwpkaWZmIC11IC1w
IC1yMS43NyBzZnRwLWNsaWVudC5jCi0tLSBzZnRwLWNsaWVudC 5jCTE2IFNlcCAyMDA3IDAwOjU1
OjUyIC0wMDAwCTEuNzcKKysrIHNmdHAtY2xpZW50LmMJNCBOb3 YgMjAwNyAxNjo0MToxMSAtMDAw
MApAQCAtNzY4LDggKzc2OCwxMCBAQCBkb19kb3dubG9hZChzdH J1Y3Qgc2Z0cF9jb25uICpjb25u
LCBjaGFyCiAJVEFJTFFfSU5JVCgmcmVxdWVzdHMpOwogCiAJYS A9IGRvX3N0YXQoY29ubiwgcmVt
b3RlX3BhdGgsIDApOwotCWlmIChhID09IE5VTEwpCi0JCXJldH VybigtMSk7CisJaWYgKGEgPT0g
TlVMTCkgeworCQltb2RlID0gMDY2NjsKKwkJZ290byB0cnlfYW 55d2F5OworCX0KIAogCS8qIFhY
WDogc2hvdWxkIHdlIHByZXNlcnZlIHNldFt1Z11pZD8gKi8KIA lpZiAoYS0+ZmxhZ3MgJiBTU0gy
X0ZJTEVYRkVSX0FUVFJfUEVSTUlTU0lPTlMpCkBAIC03ODgsNi ArNzkwLDcgQEAgZG9fZG93bmxv
YWQoc3RydWN0IHNmdHBfY29ubiAqY29ubiwgY2hhcgogCWVsc2 UKIAkJc2l6ZSA9IDA7CiAKK3Ry
eV9hbnl3YXk6CiAJYnVmbGVuID0gY29ubi0+dHJhbnNmZXJfYn VmbGVuOwogCWJ1ZmZlcl9pbml0
KCZtc2cpOwogCg==
------=_Part_23741_13897160.1194203930422
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev

------=_Part_23741_13897160.1194203930422--