SFTP listing remote files very slowly



Dear All,
What can be the problem with SFTP with listing the remote directory. The server1 is a FreeBSD 6.2 and server2 is a FreeBSD 4.11

FreeBSD 4.11:
OpenSSH_3.5p1 FreeBSD-20030916 pat OpenSSH_3.*
FreeBSD 6.2:
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.8e 23 Feb 2007

Some test results:

1. from client to server1 via sftp
mohacsi@client> time sftp -b teszt server1
sftp> dir docs
....

0.016u 0.041s 0:30.82 0.1% 116+659k 0+0io 0pf+0w

2. from client to server1 via ssh
mohacsi@client> time ssh server ls docs
....
0.012u 0.025s 0:00.88 3.4% 216+1306k 0+0io 0pf+0w

3. from client to server2 via sftp
mohacsi@client> time sftp -b teszt server2
sftp> dir docs
....
0.032u 0.024s 0:00.53 9.4% 112+836k 0+0io 0pf+0w

4. from client to server2 via ssh
mohacsi@client> time ssh server2 ls docs
....
0.037u 0.000s 0:00.32 9.3% 144+802k 0+0io 0pf+0w

As you can see in the test 1: Directory listing took >30 seconds!

Client was OpenSSH_4.5p1 but similar results with WinScp....

What can be the problem?

Thanks for any hints!

Janos Mohacsi
Network Engineer, Research Associate, Head of Network Planning and Projects
NIIF/HUNGARNET, HUNGARY
Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882



Relevant Pages

  • Re: SFTP listing remote files very slowly
    ... What can be the problem with SFTP with listing the remote ... from client to server1 via sftp ... mohacsi@client> time ssh server ls docs ... from client to server2 via sftp ...
    (SSH)
  • sftp via proc_open(): where is my prompt ?
    ... Worked flawless until deployed onto newer machines now and guess what, ... the sftp session). ... I read from stdout until I find ... stdout when talking with the sftp client. ...
    (comp.lang.php)
  • Re: SFTP client compatibility
    ... Is there a SFTP client for Mac OS X or Windows that works properly with the ... SFTP "server" that comes bundled with this version of TCP/IP Services? ... HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6. ...
    (comp.os.vms)
  • Re: How do I write a SFTP SSH client - How to hook into TCPIP$SSH_SSH2.EXE
    ... Writing your own FTP client was doable, ... using sftp using password in stead of public key authentication, ... I did find a couple of Java SSH libraries that allowed me to build a ...
    (comp.os.vms)
  • Re: win98 logon refused
    ... > I found that protocols installed are as below:> server1: tcp/ip, ... > I installed netbeiu in server2, then the client can login no matter server2> is online or not. ...
    (microsoft.public.win2000.active_directory)