ChatGPT Desktop forwards your SSH agent to remote machines 188 points · 61 comme...
HN Best 30 @best30
ChatGPT Desktop forwards your SSH agent to remote machines 188 points · 61 comments
TL;DR A text post claims the ChatGPT desktop app (via Codex) forwards the user's local SSH agent to remote machines, so an agent on a remote host could authenticate to services such as private GitHub repos with the user's credentials. The only proof offered is a GitHub pull request discussion that was closed and never merged, and commenters argue about whether that proves anything.
- The post says an agent running on a remote machine can authenticate using the user's local SSH credentials, for example to push to private GitHub repos.
- The cited evidence is a comment in openai/codex pull request 28131, which was closed without being merged.
- Commenters point out that SSH agent forwarding is a long-standing opt-in feature and that the default OpenSSH configuration does not forward the agent.
- Several commenters recommend hardware-backed keys (YubiKey, Secure Enclave, Secretive, 1Password, Bitwarden) that require a touch or biometric confirmation for each use.
- A recurring argument is that agent sandboxing relies on blacklists and coarse permissions, so users should isolate agents in VMs or cloud sandboxes.
Discussion The thread is skeptical of both the claim and the evidence. Many commenters note that the linked PR was never merged and the feature described is opt-in, so the proof looks thin, and some say the post mostly rewards outrage over the headline. A large share uses the story to argue more broadly about security friction versus convenience, citing password rotation, confirmation fatigue and AI tool-call approval prompts. Others share practical setups for requiring touch or biometrics on each SSH use, and a few argue that agents should never run on a daily-driver account or outside a sandbox. The mood is critical of AI tooling and of OpenAI in particular, with a few sharp side comments about pricing.
- Agents should be sandboxed; never run them on a daily-driver account (many): Commenters say the safe default is an isolated VM, container or cloud sandbox, since blacklist-based guardrails are leaky and tool behavior changes between versions.
- Hardware keys or biometrics should gate every SSH use (many): Users recommend YubiKey touch, Secure Enclave keys via Secretive, or 1Password and Bitwarden agents that prompt per request, though some note that these do not stop forwarding itself.
- Friction is necessary for security (some): One camp argues that convenience-driven design removes the ceremony that protects users, while others reply that too much friction causes confirmation fatigue and workarounds.
- The PR is weak evidence and the story is overblown (some): Several commenters point out that the pull request was closed, unmerged and opt-in, so it does not demonstrate abuse or surreptitious forwarding.
- SSH agent forwarding is a normal, useful feature (a few): Some note that forwarding underpins jump-host setups and is fine when the user controls where the agent is reachable, though ProxyJump is safer for tunnels.
Links from the comments
- Bitwarden's documentation for its built-in SSH agent, which can require confirmation per key use.
- Guide to using SSH keys in the macOS Secure Enclave that require fingerprint authentication.
- Walkthrough for generating a Secure Enclave SSH key that unlocks with Touch ID.
- Earlier case of a similar SSH agent exposure issue in Docker's sandbox tooling.