VS Code Remote-SSH keeps disconnecting after ten minutes idle
VS Code 1.87 with Remote-SSH 0.108, connecting to Ubuntu 22.04 over a corporate VPN. Every ten minutes of inactivity the connection drops and I have to reload the window, which loses my terminal state. ServerAliveInterval 60 is already in ~/.ssh/config. What else can I do? It's been slowly driving me up the wall. I added a keepalive setting in VS Code too but I'm not sure it's actually taking effect, since the drop happens at exactly the same interval every time.
4 replies