News for hackers. Stuff that matters.
Re:YubiKey 4C by tptacek on Monday February 13, 2017 @10:46AM (#13636090)
Note that this isn't just a U2F key; if you're looking for a token principally to log into web services with, this isn't what you want, and the token that does that costs less than half as much (it's the U2F-only token).

You want a Y4 if:

* You SSH into sensitive machines.

* You log into a VPN that you control and can configure to use the Y4.

* You're actually relying on PGP.

Re:YubiKey 4C by mackncheesiest on Monday February 13, 2017 @10:54AM (#13636155)
But it's identical functionality to a Yubikey 4, just with type-C connector, and the product page as well as myself personally can verify that Yubikey 4 supports U2F
Re:YubiKey 4C by tptacek on Monday February 13, 2017 @10:56AM (#13636171)
I'm not saying the 4C doesn't do U2F. It's the same as the 4. I'm saying that if all you want to do is log into web services, you probably don't want the Y4.
Re:YubiKey 4C by sedatk on Monday February 13, 2017 @12:38PM (#13637103)
more features can even be harmful as in default OTP mode of those devices: https://hackernoon.com/avoid-leaking-your-identity-with-yubi...
Re:YubiKey 4C by nickik on Monday February 13, 2017 @04:04PM (#13638756)
Its a good thing to think about, but I don't see it as a huge problem. I had a Yubikey Nano plugged into my laptop almost constantly and I do trigger the OTP sometimes, but using that as an attack vector is pretty hard, specially for all the sticks that are not always plugged in.
Re:YubiKey 4C by StavrosK on Monday February 13, 2017 @11:22AM (#13636423)
Does anyone have a guide on how to store an SSH key on it? I only found PGP key guides (and I have my key on it), but not much for SSH. I also think it doesn't do ECC...
Re:YubiKey 4C by pfg on Monday February 13, 2017 @11:31AM (#13636513)
You can use the GPG key on the device for SSH authentication through gpg-agent. Here's their documentation[1] for this feature.

ECC keys should work, but haven't tried that (I use RSA-4096).

[1]: https://developers.yubico.com/PGP/SSH_authentication/

Re:YubiKey 4C by StavrosK on Monday February 13, 2017 @12:21PM (#13636932)
Thank you, I seem to recall trying gpg-agent but I'm not sure I went anywhere with it. Will try again.
Re:YubiKey 4C by amitshah on Monday February 13, 2017 @12:07PM (#13636815)
There's this very nice guide that works well for Linux machines:

https://github.com/lfit/ssh-gpg-smartcard-config/blob/master...

Re:YubiKey 4C by StavrosK on Monday February 13, 2017 @12:21PM (#13636937)
I'll give that a shot, thank you!
Re:YubiKey 4C by nickik on Monday February 13, 2017 @04:10PM (#13638795)
Yes. You have to check out the PIV module. It can even be used as a CA.

https://developers.yubico.com/PIV/Guides/

There are a number of tools you can install yubico-piv-manager/yubico-piv-tool but check the guides.

I had some problems with this, somehow I could not add the key to ssh-agent, but that was related to the ssh-agent, not sure its a general problem.

Note, this does only support 2k keys. If you use the GPG Smartcard and a Authentication Subkey you can get 4k keys. The advantage of PIV is that you can actually use ssh-agent and you don't have to use gpg-agent. Gpg-agent does not have all the features that ssh-agent does, and for me that was relevant.

I prefer to keep the two separate anyways.

Re:YubiKey 4C by StavrosK on Tuesday February 14, 2017 @10:02AM (#13643901)
Thank you, this is the best guide I've seen so far. It's much simpler to install and use. However, like you, I'm having some problems. Adding the key to the ssh-agent asks for a PKCS password and always comes back with "agent refused cooperation". I also can't log in to a host that has that SSH key, but maybe that's because I have too many keys loaded...

EDIT: Never mind, it works perfectly, thanks!

Re:YubiKey 4C by nickik on Friday February 17, 2017 @06:59AM (#13667610)
This is the issue I had. I can access the key directly from the file but not add it.

How did you solve it?

Re:YubiKey 4C by StavrosK on Friday February 17, 2017 @09:03AM (#13668284)
This is a whole post, but basically, there are multiple SSH agents. ssh-agent supports the card and ed25519 keys, but doesn't support persisting keys across reboots. Gnome keyring supports persisting keys, but no card or ed25519 (AFAIK). gpg-agent supports persisting keys and ed25519, but no card.

Unfortunately, there's no perfect solution, so I just added an alias "yubissh" to include the library in the command line :(

Re:YubiKey 4C by bb88 on Monday February 13, 2017 @10:54AM (#13636152)
Bitcoin wallet security. That's the next big thing.
Re:YubiKey 4C by platz on Monday February 13, 2017 @04:21PM (#13638883)
what happens when you lose your yubikey? Has anyone ever lost their keys?
Re:YubiKey 4C by theptip on Monday February 13, 2017 @07:06PM (#13640076)
Better hope you have a paper backup.