Re:Matrix.org hacked
by aidos on Friday April 12, 2019 @05:55AM
(#19643468)
I never quite understand why there’s not a confirm version. ForwardWithConfirmation or something. I’m active when I need forwarding - would be happy to simply be prompted before it’s allowed.
[ Parent
| on HN ]
Re:Matrix.org hacked
by DblPlusUngood on Friday April 12, 2019 @06:15AM
(#19643538)
OpenSSH does have confirmation: use the '-c' switch to ssh-add.
Re:Matrix.org hacked
by aquabeagle on Friday April 12, 2019 @11:15AM
(#19645502)
Or "AddKeysToAgent confirm" in ~/.ssh/config
Waaaaaaat?! That could definitely be better known.
TIL :|
Hang in, there.
Re:Matrix.org hacked
by felipelemos on Friday April 12, 2019 @06:35AM
(#19643603)
This could be a sane default.
Hm, anything similar for gpg agent (both for gpg, and as a stand-in for ssh-agent)?
Ed: looks like I need to edit my sshcontrol-file
https://www.gnupg.org/documentation/manuals/gnupg/Agent-Conf...
If you use Yubikey with touch-to-use enabled that'll be basically what you're asking - each authentication will require touching the token.
I just enabled that after seeing this incident.
For people in the same boat, it can be done trivially using the YubiKey Manager CLI: https://developers.yubico.com/yubikey-manager/
Some ssh agent implementations do this, notably the one built into Android ConnectBot can be configured to request confirmation each time it is asked to authenticate. Unfortunately ssh-agent (from OpenSSH) does not as far as I know. It's happy to authenticate as many times as requested without any notification.
It can, and it's determined per key when added to the agent.
Look for -c here: https://man.openbsd.org/ssh-add