Sphere
Log in Join
☆ 6

remote ssh drops every five minutes after vscode 1.96

VS Code 1.96 on Windows 11, Remote-SSH 0.112, connecting to an Ubuntu 22.04 dev box over Tailscale. After the 1.96 update the connection drops every ~5 minutes with 'Lost connection to remote host'. Plain ssh user@host stays up fine so I don't think it's the link. I already bumped ServerAliveInterval 60 in ~/.ssh/config. Any known regression or setting I'm missing here?

⚑ Report

3 replies

☆ 3
M moth ·2026-10-09#1

Check the Remote-SSH output log, it usually says whether it's the control socket or the server process dying. There's a known thing where recent versions changed how the remote server spawns. Try setting remote.SSH.serverInstallPath explicitly and clear out stale server directories under ~/.vscode-server on the host. Also toggling remote.SSH.useLocalServer changes behavior quite a bit, worth testing both.

⚑ Report
☆ 0
S soggy ·2026-10-14#2

Turns out there were two stale ~/.vscode-server/bin/<old-commit> directories from earlier updates. Deleted them and set remote.SSH.useLocalServer=false. Connection's been stable for an hour now. The server log showed it was trying to reuse an old commit's server binary. Not 100% sure which of the two fixed it but I'm not touching it again.

⚑ Report
☆ 0
O onemore ·2026-10-18#3

Likely the stale binaries, Remote-SSH picks the newest matching commit dir and a half-updated one will crash. If this keeps happening after updates, add a cleanup of ~/.vscode-server/bin to your routine. And set ServerAliveCountMax 3 alongside your ServerAliveInterval, helps if it's actually a quiet-link timeout rather than the server process.

⚑ Report
Log in to reply.