Stop SSH connection from timeout
When you’re connecting to the server, sometimes you got “Broken Pipe” prompt that kicks you off from the server if you are not active for a while. This can be quite annoying if you have unsaved changes in the code and was just away for a bit searching for some solution. This can be stopped from happening if you could change the ssh configuration on the server.
Open the file /etc/ssh/sshd_config on server and add the following lines in the end.