I'm using Ubuntu 18.04 LTS to SSH into my Linux machine at work from my Windows computer, but after inactivity (either working on something else for a time, or, more annoyingly, running a command which takes a long time), the connection is reset.
The message I get is Connection reset by 129.11.190.34 port 22.
How can I stop this from happening?