Live data from Hacker News

How to use FIDO2 USB keys with SSH

stavros.io

11–20 of 99 posts

Re: How to use FIDO2 USB keys with SSH

#11
post #9

Am I missing something? The commands for resident and non-resident appear to be identical. Edit: They fixed it.

they have the addition of -O resident

from ssh-keygen:

       resident
              Indicate that the key should be stored on the FIDO authenticator itself.  Resident keys may be supported  on
              FIDO2 tokens and typically require that a PIN be set on the token prior to generation.  Resident keys may be
              loaded off the token using ssh-add(1).

from ssh-add:

        -K     Load resident keys from a FIDO authenticator

Re: How to use FIDO2 USB keys with SSH

#13
post #9

Am I missing something? The commands for resident and non-resident appear to be identical. Edit: They fixed it.

they have the addition of -O resident from ssh-keygen: resident Indicate that the key should be stored on the FIDO authenticator itself. Resident keys may be supported on FIDO2 tokens and typically require that a PIN be set on the token prior to generation. Resident keys may be loaded off the token using ssh-add(1). from ssh-add: -K Load resident keys from a FIDO authenticator

Can't make that part work on Mac.

Re: How to use FIDO2 USB keys with SSH

#14
post #9

Am I missing something? The commands for resident and non-resident appear to be identical. Edit: They fixed it.

they have the addition of -O resident from ssh-keygen: resident Indicate that the key should be stored on the FIDO authenticator itself. Resident keys may be supported on FIDO2 tokens and typically require that a PIN be set on the token prior to generation. Resident keys may be loaded off the token using ssh-add(1). from ssh-add: -K Load resident keys from a FIDO authenticator

I had the same command in both by mistake :/

Re: How to use FIDO2 USB keys with SSH

#15

I'm really excited to see more and more people talk about FIDO2. If you're interested about this topic, I gave a talk about it yesterday: https://news.ycombinator.com/item?id=23689606

That's very useful, thank you! I've been looking for something that goes into a bit more detail, so your talk is timely.

Re: How to use FIDO2 USB keys with SSH

#16

Earlier quoted context omitted.

they have the addition of -O resident from ssh-keygen: resident Indicate that the key should be stored on the FIDO authenticator itself. Resident keys may be supported on FIDO2 tokens and typically require that a PIN be set on the token prior to generation. Resident keys may be loaded off the token using ssh-add(1). from ssh-add: -K Load resident keys from a FIDO authenticator

I had the same command in both by mistake :/

You still do?

EDIT: I see it now.

Re: How to use FIDO2 USB keys with SSH

#18

Earlier quoted context omitted.

they have the addition of -O resident from ssh-keygen: resident Indicate that the key should be stored on the FIDO authenticator itself. Resident keys may be supported on FIDO2 tokens and typically require that a PIN be set on the token prior to generation. Resident keys may be loaded off the token using ssh-add(1). from ssh-add: -K Load resident keys from a FIDO authenticator

Can't make that part work on Mac.

Unfortunately, MacOS still ships with SSH 8.1, AFAIK.

Re: How to use FIDO2 USB keys with SSH

#20

I'm really excited to see more and more people talk about FIDO2. If you're interested about this topic, I gave a talk about it yesterday: https://news.ycombinator.com/item?id=23689606

Here's a browser compatibility matrix (I know, OP is about SSH).

FIDO2/U2F Just Works in:

    Chrome on Windows
    Firefox on Windows
    Chrome on Mac
    Firefox on Mac
    Chrome in Ubuntu 20
    Firefox in Ubuntu 20
Wall of shame (FIDO2/U2F does not Just Work in):

    Safari

EDIT: it does work out-of-the-box in Ubuntu 20, my bad.
Post reply on HN