Live data from Hacker News

How to use FIDO2 USB keys with SSH

stavros.io

1–10 of 99 posts

Re: How to use FIDO2 USB keys with SSH

#2
Be aware literally nothing supports this unless it's your own kernel.

Gitlab? No. Github? No. My gateway with a hand built gentoo kernel? Yes.

It seems functional, but you've also got to be aware that `ed25519-sk` and `ecdsa-sk` have sort of spotty support in the devices too. `ed25519-sk` does not work on a Yubikey <5, for example.

Re: How to use FIDO2 USB keys with SSH

#3
post #2

Be aware literally nothing supports this unless it's your own kernel. Gitlab? No. Github? No. My gateway with a hand built gentoo kernel? Yes. It seems functional, but you've also got to be aware that `ed25519-sk` and `ecdsa-sk` have sort of spotty support in the devices too. `ed25519-sk` does not work on a Yubikey <5, for example.

> Be aware literally nothing supports this unless it's your own kernel.

Ubuntu 20.04 and later supports this, and, since that's LTS, it means that quite a few servers and machines will be supporting it already.

Github/Gitlab aren't supporting it yet, but given how great it is for security, I think they have a big incentive to speed up support.

> ed25519-ek does not work on a Yubikey That's no problem, since you can just generate an ECDSA key instead, but yes, not all keys have hardware support for all algorithms.

Re: How to use FIDO2 USB keys with SSH

#4
> be extra careful when using SSH forwarding (the -A option), as the server can then ask your computer to authenticate to other servers on your behalf.

That would require an extra press of the token's button for each extra authentication, right?

Re: How to use FIDO2 USB keys with SSH

#6
post #2

Be aware literally nothing supports this unless it's your own kernel. Gitlab? No. Github? No. My gateway with a hand built gentoo kernel? Yes. It seems functional, but you've also got to be aware that `ed25519-sk` and `ecdsa-sk` have sort of spotty support in the devices too. `ed25519-sk` does not work on a Yubikey <5, for example.

Not exactly true. Ubuntu 20.04 supports this out of the box and lots of VMs therefore also do.

Re: How to use FIDO2 USB keys with SSH

#7
post #4

> be extra careful when using SSH forwarding (the -A option), as the server can then ask your computer to authenticate to other servers on your behalf. That would require an extra press of the token's button for each extra authentication, right?

That's a good point, I haven't tried it but I think you're right, which is another great benefit of using hardware tokens.
Post reply on HN