I'm using a public key on the server and a private key on my local for authentication. Also I access databases on my server through tunneling.
But sadly when I leave that connection alone for about 1 min, that connection will be closed. Why? How can I make it alive forever (until I close it)?
Source: https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/