Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: SFTP listing remote files very slowly

Subject: Re: SFTP listing remote files very slowly
Date: Wed, 18 Jul 2007 15:42:06 -0400
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

<Prev in Thread] Current Thread [Next in Thread>