Ilya Dogolazky
2012-02-28 14:21:06 UTC
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
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