I have Ubuntu server 22.04 running at home. Static IP, outside of DHCP range so the IP will not change. Also, my home network’s public IP has been the same the whole time.
When the server is freshly booted up/restarted, I can SSH into it just fine. I can terminate the session and reconnect without any issues.
However, if its been a few hours without connecting to it, the connections fail. Is this a common problem for servers? I’m wondering if the SSH server shuts down after X amount of time with no connection attempts? Or maybe the server suspends itself.