problem with sftp & huawei switches

Milan Kocian milon at wq.cz
Mon Nov 5 08:27:44 EST 2007


On Sun, Nov 04, 2007 at 06:27:22PM +0100, Peter Stuge wrote:
 
> How about "ls ." and "ls /" ?
> 
> The problem is that the path to the top of the filesystem does not
> start with '/' but with 'f' (flash:) - I don't know if this is a
> problem with OpenSSH or huawei software or maybe the filexfer drafts.
> 
I don't know it too. But winscp (in wine) works (probably it's not so strict).

Here are commands (openssh 4.6p1):
sftp> ls .
Couldn't stat remote file: Operation unsupported
Can't ls: "flash:/." not found
sftp> ls /
Couldn't stat remote file: Operation unsupported
Can't ls: "/" not found

But 'ls *' is interesting ! (number of stat lines is equal to number of files in
switch):
sftp> ls *
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Can't ls: "flash:/*" not found
sftp> mkdir aaa
sftp> ls *
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Couldn't stat remote file: Operation unsupported
Can't ls: "flash:/*" not found

ON switch: 

<Quidway>dir
Directory of unit1>flash:/

   1       -rw-      2450  Mar 09 2007 18:05:25   vrpcfg.def
   2 (*)   -rw-      2554  Nov 02 2007 23:11:43   vrpcfg.cfg
   3 (b)   -rw-   4833881  Feb 12 2007 17:57:46   s5600-vrp310-r1510p06.bin
   4 (b)   -rw-    801434  Feb 12 2007 18:00:02   hw-http3.1.5-0043.web
   5       -rw-    337072  Mar 09 2007 17:55:09   s5600_v408.btm
   6 (*)   -rw-   4866775  Mar 09 2007 18:01:18   s5600-vrp310-r1510p12.bin
   7 (*)   -rw-    804260  Mar 09 2007 18:02:34   hw-http3.1.5-0049.web

15367 KB total (3982 KB free)

AFTER mkdir:

<Quidway>dir
Directory of unit1>flash:/

   1       -rw-      2450  Mar 09 2007 18:05:25   vrpcfg.def
   2 (*)   -rw-      2554  Nov 02 2007 23:11:43   vrpcfg.cfg
   3 (b)   -rw-   4833881  Feb 12 2007 17:57:46   s5600-vrp310-r1510p06.bin
   4 (b)   -rw-    801434  Feb 12 2007 18:00:02   hw-http3.1.5-0043.web
   5       -rw-    337072  Mar 09 2007 17:55:09   s5600_v408.btm
   6 (*)   -rw-   4866775  Mar 09 2007 18:01:18   s5600-vrp310-r1510p12.bin
   7 (*)   -rw-    804260  Mar 09 2007 18:02:34   hw-http3.1.5-0049.web
   8       drw-         -  Nov 05 2007 04:53:34   aaa

regards,

-- 
Milan Kocian


More information about the openssh-unix-dev mailing list