I'm moving my login setup to a thin laptop, and I can't decide where the SSH key should live. The private key stays on the laptop either way, not on the VMs. The question is whether it's a normal key behind an agent or a FIDO2-backed key (ed25519-sk) that needs a physical touch.
The case for the agent: it's frictionless. Unlock once, and Remote-SSH, git pulls and scripts just work. The downside is that the key file is the thing worth stealing. A passphrase helps, but a stolen laptop that's already unlocked is a bad day.
The case for the hardware key: the private half can't be copied off the laptop, and every login needs a touch. What I'm unsure about is how that feels in practice. I've read that a resident key is handy for a fresh machine, but I haven't tried it, and I don't know how it behaves with long-lived Remote-SSH sessions, reconnects, or tools that open a lot of connections.
What I'm leaning toward is a FIDO2 key for the VMs and the management network, since that's where a compromise hurts most. For low-stakes hosts I'd keep a passphrase-protected key in the agent. That means two identities and a slightly fussier config:
Host devvm
HostName devvm.lab.example
User priya
IdentityFile ~/.ssh/id_ed25519_sk
IdentitiesOnly yes
ForwardAgent no
I'd only go all-in on the hardware key if the touch prompts don't get annoying within a week. And I'd want a second key registered as a spare, stored somewhere else, before I trust it.
If you've run both: did you get tired of the touch prompts, and what did you do about a lost or broken key? Is there a setup you tried and went back from?