sshd take long time to start

it is 4 days when I reboot system , when sshd want start , it take long time to start and after 3 minute it start and I can login to my system and use it
I do not know what happen.

I do not have this problem before

I use

Code:
FreeBSD Mostafa.Faridi 7.0-RELEASE-p12 FreeBSD 7.0-RELEASE-p12 #9: Thu Apr 23 11:09:08 IRDT 2009     Mostafa@Mostafa.Faridi:/usr/obj/usr/src/sys/GMFARIDISRV  i386

what I must do ?
 
Are you able to ping the adresses in /etc/hosts and your DNS-servers in /etc/resolv.conf?
You can also try starting sshd manually to see what happens:

Code:
killall -KILL sshd
/etc/rc.d/sshd restart
 
Maybe regenerate your private key files.
Code:
/etc/rc.d/sshd keygen
Then rename or remove the files mentioned by that command and execute it again.
 
It is almost certainly a DNS issue.

If you only ever connect to machines by ip address or names in /etc/hosts, you can set
Code:
UseDNS no
in /etc/ssh/sshd_config
.
 
Back
Top