‹ BackHN Continuity

Thread

VSCode's SSH Agent Is Bananas (2025)

310 points · 218 comments · Rapzid

  1. danielklnstein · · focus · HN ↗
    Missing a (2025)

    FYI VSCode's SSH Agent is a godsend for remote development - the "disadvantages" that Fly lists are part of its advantages. I've worked in several teams that have made extensive use of the extension, and it's never been an issue. You can restrict SSH access arbitrarily to ensure whatever security or access guardrails you need.

    1. miohtama · · focus · HN ↗
      “A tool with a purpose of editing files on a remote system can edit files on a remote system.”
      1. devonbleak · · focus · HN ↗
        it's worse than that, last i looked into this - there's functionality in the protocol that allows the remote system to modify files and execute code on the local/frontend system. it really is bananas.

        Edit: there's a security note (still) on the remote ssh extension page:

        Security Note Using Remote-SSH opens a connection between your local machine and the remote. Only use Remote-SSH to connect to secure remote machines that you trust and that are owned by a party whom you trust. A compromised remote could use the VS Code Remote connection to execute code on your local machine.

        <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=ms-vscode-remote.remote-ssh" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=ms-vscod...

        1. necovek · · focus · HN ↗
          Reminds me of the old Jenkins protocol which warned about &quot;slaves&quot; getting access to execute code on the &quot;master&quot;: who&#x27;s the master now? ;)
          1. Muromec · · focus · HN ↗
            when slaves became workers and joined the union, the unions became &quot;social partners&quot;. this is how one closes the laptop at 4 and doesn&#x27;t have to suffer vibe-decrees mandating RTO

            seize the control plane.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.