3 ms·
I use VSCode + SSH remote for this and works great. The only nitpick I have is needing to manually reconnect when I suspend my laptop and ssh connection breaks.
by senko 2y ago
I use VSCode + SSH remote for this and works great. The only nitpick I have is needing to manually reconnect when I suspend my laptop and ssh connection breaks. It's a separate session though, which doesn't matter to me but may be a deal breaker for you.
I use Tailscale for a personal VPN so the beefy workstation is always securely available from my laptop, even when across the pond).
- hu3 2y agoThank you both for sharing the experience. I'm tempted to go lightweight laptop + beef server. Do you get used to the the input delay? I guess coding is not a FPS game so it's fine. Just a flow of words being edited.
- dagw 2y agoDo you get used to the input delay? The input delays are very dependent on where the server is and what it is doing. If the server is idle and close by (ping wise) delay is virtually indistinguishable from local VSCode. If I'm connecting to the server via a VPN in a different country while stressing all the cores with some background compiling or number crunching work, input delay gets quite noticeable.
- hu3 2y agoI guess editing files in the same continent must feel good enough. Thank you! I should try a project in this way. Perhaps rent some hetzner VPS.
- senko 2y agoThere's no input delay in VSCode (editor, ui) because the UI is local. Delay in saving/reading/sesrching in files is not noticable for me. (edit to explain: VSCode is still running locally, but it also installs the server-side (headless) component on the remote machine. That way editing files is local/fast, but stuff like running the code, search/replace/etc also works fadt because it's handled by the serverside). Terminal (incl vscode terminal) feels slightly sluggish, and it's noticable if the server is in another country and uncomfortable if across the pond.
- hu3 2y agoThank you. Sounds like best of both worlds.
- nrvn 2y ago10 years ago I was using https://mosh.org/ https://mosh.org/ to sutomatically reconnect ssh sessions.
- DavideNL 2y agoThere's also `et`: https://mistertea.github.io/EternalTerminal/ https://mistertea.github.io/EternalTerminal/
- senko 2y agoVSCode uses ordinary ssh tho. I multiplex my ssh connections so the workflow is just ssh sgain, then reload VSCode window. If Mosh could multiplex these (and paper over the connection problems) that'd be great but after a cursory look, it doesn't look like it's possible. It's a minor thing tho. In general, I quite like Mosh! If I routinely had to work on faraway servers I'd use mosh just for its smart local echo.
- _hyn3 2y agoAutoSSH has been doing that since forever too (in most distros, ie apt-get install autossh) https://github.com/Autossh/autossh https://github.com/Autossh/autossh