Noticed in version 8.10, now here at 9.10 the same story. Immediately after installing the OS, login via ssh happens instantly. But then each time more and more. What is the reason for this?
I want to clarify that the delay after entering the correct password.
something like this. Well, fix problems with DNS.
Try direct access over IP blockquote> It does not help.
The delay with the resolution of the names there is not on the client side, but on the server side. The default SSH server tries to resolve the IP address of the connecting client to the host name, it does so through the reverse DNS zone (in particular, in order to write the host name in the log of connections, not the IP address).
If there is no corresponding record of the IP address of the connecting client in the reverse DNS zone or problems with access from the SSH server to the DNS, then there will be delays in connecting until the allotted timeout for IP resolution in the name passes.
Therefore, either correctly configure DNS with records in the reverse zone for client machines, or refuse to use it by the SSH server for name resolution. - olea