I use yubikey Fido keys so I need to touch the key to unlock it
It’s quite wild to be working and see my yubikey flash waiting for input because I have an agent running a task and it’s trying things like GitHub auth without asking me
If you grant an LLM agent full system access, it’ll have full system access.
I can tell you at my work, a large enterprise, people have pretty much just given Claude auto-mode free rein to do everything. Incidents in production are honestly people just sharing the output of their Claude’s investigations colored by whatever skills, memory and tokens available to it
The difference is that one situation is logged in the logs as you doing a thing, and the other is logged as the agent doing the thing. That's why you should really run your agents as their own separate user account and give that account whatever (minimal required) permissions it needs to do the job. For auditability purposes when tracing down a problem (to implement a solution, or to lay blame), you probably want to know when the "bot" screwed up so that it can be fixed (and so you don't have to take the blame for something you had absolutely no control over). The problem with that whole plan is this; I double-dog dare you to try to get the "bosses" to implement anything that improves security and auditability if it's going to cost even just ten seconds of extra time, or ten cents of extra money. Ain't gonna happen.
- Good ergonomics
- No private key sitting unencrypted on disk
Hell, isn't it even the default when using `ssh-keygen`? As in, it prompts you for a passphrase if you don't explicitly tell it not to?
Honestly: don't use agent forwarding at all, use ProxyJump / -J. Agent forwarding is really only for systems you do in fact fully trust.
Yes but you can just hit <enter>
There's no need to reveal your unencrypted keys to Bitwarden or any other cloud service.
The default for keys added to ssh-agent without further config/options is to keep them unlocked indefinitely (as long as the ssh-agent process keeps running anyway).
Agents like Bitwarden and 1Password are more granular in their authorisation, in 1Password’s case I tap the fingerprint reader on my laptop when a process in a specific terminal first requests SSH key access to authorise that, after which it can use it as much as it likes until the session times out. Doing so however doesn’t mean that some other process spawned by some malware can also use it, that’s going to pop a prompt up again.
> First – Isn’t using a passphrase enough? Probably. I don’t intend to imply that this post is the only way that anyone should be doing SSH keys. [...] So yes, the ’traditional’ method is probably fine for most threat models.
https://blog.infected.systems/posts/2026-11-03-i-deleted-all...