Hacker News new | ask | show | jobs
by OroPla 8 days ago
I guess if you remove your yubikey after you are done that is true. I always have mine connected, though. And if that machine is compromised it's game over anyway.

I'm talking about the hassle of entering your PIN everytime you need to use it. The idea of ssh keys is that you don't have to enter your password anymore, but if you just have to enter a different password everytime then I don't really see the point. If you still need to enter a PIN it also prevents automation, like having a backup run during the night to an offsite location via ssh.

1 comments

Leaving it plugged does weaken the security it provides. I probably enter my PIN a few times per day depending on how often I'm away from my desk. I don't enter it on every use, just the first time on each plug. I think that's the default rather than something I've configured. It's no more hassle than unlocking my screen.

For machine to machine like a backup process, it runs with its own key, with its own system user on the source and destination machine. That key has to sit on disk (or at least that's the risk that I accept), but that's a completely different risk to a key living in a real user's home directory. It can be locked down on both sides to mitigate further. Read only pull backups over SSH are possible this way for example.

You can use hardware tokens without interaction of course, but I agree in this particular case, it doesn't buy you much extra protection.