Rocky9 link SSH timeout, I don't know if it is related to system hibernation

After exiting SSH with eixt, a few minutes later, when you log in with SSH again, “timed out” will appear. At the same time, accessing the nginx page will also timeout, but I have configured xorg This is still the case with conf files

But continue to use ssh to log in, you can log in after about two minutes, and the nginx page can also be opened normally

Is this a VM or an installation on a normal machine? I have Rocky9 installed and I don’t have such problem.

If the machine hasn’t been shut down it has nothing to do with hibernation/suspend. Some VM’s can take a little while to respond if they haven’t been accessed for a certain time. Maybe because open-vm-tools, qemu-guest-utils or hyperv-daemons haven’t been installed if it is a VM.

is on a normal machine

Could be power management then for your network card/wireless card that is causing the issue.

Sounds like the default value LoginGraceTime 2m in /etc/ssh/sshd_config
This won’t help
ClientAliveInterval 30
ClientAliveCountMax 5
UseDNS no