isaac
Have you check SSH idle timeout detection from /etc/ssh/sshd_config? This scheme can enhance the security of SSH service, after the repair of SSH connection for a long time without operation will automatically quit, to prevent others from using.
You can try to check with idling your current SSH session using PowerShell or PuTTY. If it is the same from panel terminal, you should check /etc/ssh/sshd_config on the ClientAliveInterval parameter.
If the ClientAliveInterval is enabled using any values around 600 to 900, try to increase the values you want but it will show the Security Risks on the Home panel. This is the security measures to prevent root privilege escalation while idling your SSH access.