r/learnmachinelearning • u/No-Conclusion3720 • 19d ago
Request ChatGPT Desktop forwards your SSH agent to remote machines
A disclosure confirmed that a popular AI desktop application silently forwards the user's SSH agent to remote machines during sessions.
What this means in practice: every server your SSH key can reach becomes reachable through the AI session. The credential never leaves your device in the traditional sense. But the socket does. Any process the AI spawns can authenticate to your infrastructure as you, against hosts you never explicitly authorized, for the duration of that session.
This is not a hypothetical. The forwarding behavior was confirmed and documented. The scope of exposure scales directly with how permissive your SSH key is — a key that reaches prod reaches prod through the AI too.
The broader problem this surfaces: non-human software acting on your behalf does not respect the implicit mental model you have of what it is allowed to touch. The user thinks the AI is local. The SSH socket disagrees.
For those running AI tooling in environments where SSH keys have meaningful blast radius — how are you actually handling this? Are you scoping keys specifically for AI sessions, running AI tooling in isolated VMs, something else entirely? Curious what real mitigations look like in practice, not in theory.
1
u/geofabnz 19d ago
This kind of stuff is why I’m paranoid… AI coding CLI’s and Production SSH can never live on the same machine. AI coding agents act as the user and this fundamentally breaks the SSH model. Multifactor SSH CA is a great tool but a lot of legacy systems don’t support it.
I keep my coding agents on a separate machine. I have a dedicated proxmox box for my agents. Openshell is great but it’s still only one part of a defense in depth solution.