E
E
Evgeny Elizarov2012-08-12 19:03:52
linux
Evgeny Elizarov, 2012-08-12 19:03:52

Long ssh login

A few days ago, a strange thing began - the login to the home server began to take 10-15 seconds. those. I write ssh 192.168.0.1 -l user and wait 15 seconds before it asks for a password. The network settings have not changed in any way, the servers in general, too. Somewhere, when someone already voiced a similar problem to me, and it seems to be somehow connected with DNS (the provider's DNS is used on the client and on the server). I have already registered them on the client and on the server to each other in /etc/hosts - it’s useless 0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya_Drey, 2012-08-12
@KorP

In the file /etc/ssh/sshd_config you need to write:
UseDNS no
And then restart the sshd service. Most likely, at the moment, the sshd service, when trying to connect, cannot resolve the ip of the host from which you are trying to connect.

S
Sergey, 2012-08-12
@bondbig

I have already registered them on the client and on the server to each other in /etc/hosts - to sense and correctly, this will not help. Because there is not a direct, but a reverse DNS request. Either add PTR records, or turn off the check, as described above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question