slow ssh login on a cygwin machine

Ilya Dogolazky ilya.dogolazky@nokia.com
Tue Feb 28 15:00:00 GMT 2012


Hi !

I'm running sshd on a windows machine. Since last weekend (I have not 
installed anything) the logging in via ssh started to take 5 to 20 
seconds (it was less than 1 second before that). It doesn't matter from 
which machine I'm logging in (tried localhost, some another cygwin 
machine, 3 different Linux machines: both staying in the same room or 
1000 km away).

On the server side I have following options in /etc/sshd_config:
$ cat /etc/sshd_config | grep -v '^#' | grep -v "^$"
Port 22
StrictModes no
AuthorizedKeysFile      .ssh/authorized_keys
GSSAPIAuthentication no
GSSAPICleanupCredentials no
UsePrivilegeSeparation yes
UseDNS no
Subsystem       sftp    /usr/sbin/sftp-server

On the client side I tried following options (all together and one by 
one, no difference):
ssh \
   -o AddressFamily=inet \
   -o CheckHostIP=no     \
   -o PreferredAuthentications=publickey \
    -o VerifyHostKeyDNS=no localhost  \
    echo blah

And another pretty strange thing: the /var/log directory contains a file 
"lastlog" of size 445 Megabytes (445916640). I removed this file and 
restarted sshd --- nothing changed about login time. I found a file with 
the same name (with absolutely the same size, but a different md5sum) on 
another machine running sshd in cygwin having the same login time 
issues. One of these machines is freshly installed.

Attached are:

1. cygcheck.out: output of "cygcheck -srv"
2. blah.log: file saved by
  "ssh -vv localhost echo blah 2>&1 |tee blah.log"
  In two places I marked by XXXXX where it's waiting for something.
  The CPU usage during this test remains about zero.

Any help is appreciated.

Cheers,

Ilya Dogolazky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blah.log
Type: text/x-log
Size: 6704 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120228/649eb1aa/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120228/649eb1aa/attachment.ksh>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list