Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question