Re: SFTP listing remote files very slowly



are you doing reverse lookups on the sshd side? If so, the time could
be DNS expiration. Put the hostnames of the servers in the hosts file
and see if that improves your transfer time.

Cheers!

-Tim

On Wed, 2007-07-18 at 17:06 +0200, Mohacsi Janos wrote:
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

  • 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)
  • 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)
  • Re: win98 logon refused
    ... I installed netbeiu in server2, then the client can login no matter server2 ... I deleted netbeui in the client, then the client can't login any time. ... > what error message. ...
    (microsoft.public.win2000.active_directory)
  • Re: Errors 2070 and 2102 on Exchange server 2000
    ... configured your client access licenses in your domain. ... > Type gebeurtenis: Informatie ... > Bron van gebeurtenis: MSExchangeDSAccess ... > Computer: SERVER2 ...
    (microsoft.public.exchange2000.active.directory.integration)
  • DC Demotion
    ... computer account SERVER2$ on the remote domain controller ... Event Category: Privilege Use ... Service: Security Account Manager ... Client User Name: Adminstrator ...
    (microsoft.public.windows.server.active_directory)