News for hackers. Stuff that matters.
Re:Quick Tip: Enable Touch ID for Sudo (2020) by delogos on Wednesday June 15, 2022 @09:39AM (#31752705)
Speaking from personal experience, don't do this on a machine you'll ever access remotely, because then you're stuck waiting for the biometric check to time out before you can authenticate via another method.
Re:Quick Tip: Enable Touch ID for Sudo (2020) by smsx on Wednesday June 15, 2022 @11:23AM (#31754351)
I've just tested this, and it works fine. It asks for my password like normal from an ssh session, while still using touch id locally.
Re:Quick Tip: Enable Touch ID for Sudo (2020) by Thorrez on Wednesday June 15, 2022 @11:39AM (#31754647)
Hmm, what about remote desktop?
Re:Quick Tip: Enable Touch ID for Sudo (2020) by rfoo on Wednesday June 15, 2022 @11:49AM (#31754820)
There is a "Use password" button.
Re:Quick Tip: Enable Touch ID for Sudo (2020) by xenadu02 on Wednesday June 15, 2022 @01:57PM (#31756735)
In macOS terms ssh is a "StandardIO" session, not an Aqua (UI) session so it shouldn't even attempt the biometric prompt in that case.
Re:Quick Tip: Enable Touch ID for Sudo (2020) by jwr on Wednesday June 15, 2022 @11:22AM (#31754338)
That's why I prefer using Yubikeys (using this setup: https://github.com/drduh/YubiKey-Guide) — and this method times out immediately (just press esc when the "insert card" dialog comes up).

Plus you can have multiple keys. Plus you can use them for gpg and ssh. Plus you can back them up. Plus you can print them on paper.

Re:Quick Tip: Enable Touch ID for Sudo (2020) by GekkePrutser on Wednesday June 15, 2022 @01:03PM (#31755938)
Yes and you can forward the yubikey through an SSH agent. It's what I do. This way you can sudo with hardware auth both locally and remotely. Enable touch to sign so the yubikey can't be 'milked' for authentication while it's inserted and unlocked.

I don't know if you can do the same (forwarding over SSH) with Fido2 but I still use traditional SSH keys anyway (stored on the yubi with OpenPGP). And the pam_ssh_agent_auth module.

I'll only consider switching to Fido once everything supports it (eg my iLO devices too) and it can offer at least the same features like forwarding. For now the former is very far from being realised anyway.

Re:Quick Tip: Enable Touch ID for Sudo (2020) by tirwander on Wednesday June 15, 2022 @02:20PM (#31757057)
The biggest reason I haven't adopted Yubikey yet is that I'm super worried I'll lose that one little USB/NFC key
Re:Quick Tip: Enable Touch ID for Sudo (2020) by _morgs_ on Wednesday June 15, 2022 @02:31PM (#31757224)
Always get 2...
Re:Quick Tip: Enable Touch ID for Sudo (2020) by kelnos on Wednesday June 15, 2022 @03:02PM (#31757753)
How does that work in practice, though? Do most websites (etc.) support enrolling more than one token?
Re:Quick Tip: Enable Touch ID for Sudo (2020) by mwarkentin on Wednesday June 15, 2022 @03:33PM (#31758220)
Almost every one .. the big one that only supports a single MFA token that I'm aware of is AWS...
Re:Quick Tip: Enable Touch ID for Sudo (2020) by fragmede on Wednesday June 15, 2022 @03:13PM (#31757915)
GitHub and Google/Gmail certainly do.
Re:Quick Tip: Enable Touch ID for Sudo (2020) by vladvasiliu on Wednesday June 15, 2022 @03:19PM (#31758007)
There's a workaround for this on the Arch Wiki:

https://wiki.archlinux.org/title/Fprint#Login_configuration

This also helps if you want to use the touch / Yubikey / Whatever to unlock the machine, but you need to type in the password when opening the session so that all the wallets unlock, too.

Re:Quick Tip: Enable Touch ID for Sudo (2020) by bodge5000 on Wednesday June 15, 2022 @10:19AM (#31753293)
Doesnt just apply to macs/touch bar either. Had the same issue when I setup my fingerprint sensor on my thinkpad on fedora. Maybe theres a way to get both to work, but I never found it