ssh delay (60 seconds) between username and password

Hi,
When I connect to my FreeBSD box using PuttY, there is a 60 second (exactly) delay between the prompt for username and password. Put simply, the connection starts okay and I get the "login as" prompt where I type in my username, then, a 60 second delay before the prompt for the password. What could cause this and how do I fix it?

Thank you.
 
Make sure the FreeBSD machine is able to reverse resolve the IP address back to a hostname. That's usually the cause of the delay.
 
SirDice said:
Make sure the FreeBSD machine is able to reverse resolve the IP address back to a hostname. That's usually the cause of the delay.

Would that be a setting in the hosts.allow file?
 
No, it's to do with DNS resolving. Make sure you have a proper /etc/resolv.conf.
 
SirDice said:
No, it's to do with DNS resolving. Make sure you have a proper /etc/resolv.conf.

I tried something but not sure if it's correct.

My /etc/resolv.conf files reads follows:

Code:
domain  net
nameserver      192.168.0.1
m2a-vm          192.168.0.101

with m2a-vm being the computer accessing my server (192.168.0.100).

The delay is still there.
 
Попробуй: Try:
Code:
nameserver      192.168.0.1
nameserver      192.168.0.101

Tак же в ssh[d] есть такое: Make sure this is in /etc/ssh/sshd_config.
Code:
UseDNS no
 
es131245 said:
Попробуй: Try:
Code:
nameserver      192.168.0.1
nameserver      192.168.0.101

Tак же в ssh[d] есть такое: Make sure this is in /etc/ssh/sshd_config.
Code:
UseDNS no

It didn't work.
 
stephanelefou said:
es131245 said:
Попробуй: Try:
Code:
nameserver      192.168.0.1
nameserver      192.168.0.101

Tак же в ssh[d] есть такое: Make sure this is in /etc/ssh/sshd_config.
Code:
UseDNS no

It didn't work.

The UseDNS no did the trick! Thanks :beer
 
Back
Top