News for hackers. Stuff that matters.
Re:You can't afford to keep your SSH keys on disk by 201984 on Monday November 23, 2026 @10:30AM (#50613505)
Why not just use the regular SSH agent with a password? Still encrypted on disk, so I don't see what the difference is.
Re:You can't afford to keep your SSH keys on disk by mingus88 on Monday November 23, 2026 @10:44AM (#50613761)
If your threat model includes rogue LLM agents on your system then your passphrase can be compromised by a logger or just getting it from memory

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

Re:You can't afford to keep your SSH keys on disk by lxgr on Monday November 23, 2026 @11:15AM (#50614299)
And you’re 100% sure you’d do a diligent investigation every single time you have to tap your Yubikey twice for unexplainable reasons?

If you grant an LLM agent full system access, it’ll have full system access.

Re:You can't afford to keep your SSH keys on disk by cozzyd on Monday November 23, 2026 @11:51AM (#50614998)
why would you run an agent as your user, is probably the real question.
Re:You can't afford to keep your SSH keys on disk by mingus88 on Monday November 23, 2026 @12:11PM (#50615384)
If you want the agent to look at logs, create PRs, run tests that need network access (grade, Basel, etc) then you are going to have to give it enough access that there is probably very little functional difference from you running those commands yourself

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

Re:You can't afford to keep your SSH keys on disk by blooalien on Monday November 23, 2026 @12:25PM (#50615607)
> If you want the agent to look at logs, create PRs, run tests that need network access (grade, Basel, etc) then you are going to have to give it enough access that there is probably very little functional difference from you running those commands yourself

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.

Re:You can't afford to keep your SSH keys on disk by cozzyd on Monday November 23, 2026 @03:31PM (#50618810)
plus the bosses are sure as hell running an AI assistant with full permisisons to access all their spreadsheets, or whatever.
Re:You can't afford to keep your SSH keys on disk by cozzyd on Monday November 23, 2026 @12:52PM (#50616059)
Why does it need to create PR's? It can work in a local branch that you pull from your user and push to whatever upstream you want. Sure, it's slightly slower, but you're not handing Anthropic keys to your kingdom.
Re:You can't afford to keep your SSH keys on disk by abound on Monday November 23, 2026 @10:46AM (#50613783)
Yeah I'm really curious why using a key passphrase is not an option for the author. Seems like it has everything they're looking for:

- 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?

Re:You can't afford to keep your SSH keys on disk by handplane on Monday November 23, 2026 @11:01AM (#50614041)
There's real ergonomic gain here if you ever forward your ssh agent to another machine. With default SSH, you need to use the clunky askpass setup to be able to approve each access of your keys from the remote machine, but with Bitwarden, you can easily attach it to TouchID or similar.
Re:You can't afford to keep your SSH keys on disk by eqvinox on Monday November 23, 2026 @11:38AM (#50614755)
ssh-add -c + ssh-askpass might be clunky, but - hitting TouchID is notably worse security wise since you'll get into a pattern of hitting it relatively often, making it much easier to smuggle an illegitimate request into that, no? It diminishes the value of TouchID.
Re:You can't afford to keep your SSH keys on disk by handplane on Monday November 23, 2026 @01:20PM (#50616508)
Absolutely, but what's the better option? If you're forwarding to a remote and that remote isn't fully trusted with your key, you need a manual approval step of some sort whether that's askpass, Bitwarden, or a yubikey.
Re:You can't afford to keep your SSH keys on disk by eqvinox on Monday November 23, 2026 @01:52PM (#50617022)
> Absolutely, but what's the better option? If you're forwarding to a remote and that remote isn't fully trusted with your key

Honestly: don't use agent forwarding at all, use ProxyJump / -J. Agent forwarding is really only for systems you do in fact fully trust.

Re:You can't afford to keep your SSH keys on disk by SoftTalker on Monday November 23, 2026 @03:34PM (#50618849)
> it prompts you for a passphrase

Yes but you can just hit <enter>

Re:You can't afford to keep your SSH keys on disk by praash on Monday November 23, 2026 @10:50AM (#50613861)
Just to clarify your point for others; SSH private key files can already be encrypted with a passphrase. SSH will then prompt for the passphrase whenever the key is used. The standard SSH agent can optionally keep keys unlocked for a time period.

There's no need to reveal your unencrypted keys to Bitwarden or any other cloud service.

Re:You can't afford to keep your SSH keys on disk by eqvinox on Monday November 23, 2026 @11:42AM (#50614846)
> The standard SSH agent can optionally keep keys unlocked for a time period.

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).

Re:You can't afford to keep your SSH keys on disk by jon-wood on Monday November 23, 2026 @10:53AM (#50613902)
Typing a reasonably strong SSH key passphrase many times a day is deeply annoying, and the alternative to that is running ssh-add once a session and then anything else running as your user being able to use it with impunity.

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.

Re:You can't afford to keep your SSH keys on disk by ethersteeds on Monday November 23, 2026 @10:54AM (#50613912)
I think the answer is more plainly and reasonably given in the article TFA cites as inspiration, "I deleted all my SSH keys":

> 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...