95
Follow below steps
Add following to /etc/ssh/sshd_config
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 240
After that restart ssh service
systemctl [start|restart|stop|status|enable|disable] ssh
Refer – https://www.simplified.guide/ssh/disable-timeout