VSCode's SSH Agent Is Bananas (2025)(fly.io)
301 points by Rapzid 20 days ago | 210 comments
tl;dr: VSCode's remote SSH editing doesn't just piggyback on the shell like Emacs' Tramp — it stages a Bash script that downloads a Node binary and installs a persistent agent, which then opens a WebSockets channel back to the front-end capable of roaming the filesystem, editing files, and spawning PTYs. The author (from Fly.io) notes this behavior resembles malware and is especially concerning on dev servers or during production incidents, particularly as LLM coding agents proliferate on top of VSCode forks.
HN Discussion:
  • ↓VSCode's SSH behavior is a legitimate, useful feature and not surprising given its purpose
  • ↑The remote-to-local attack direction is the truly concerning security issue
  • ↑The agent's disk usage and persistence are excessive and problematic
  • ↓The article's tone and anti-LLM framing undermines its credibility
  • ↑Considering banning VSCode remote agents on servers due to security risk