News for hackers. Stuff that matters.
Re:Securing my personal SSH infrastructure with Yubikeys by TimWolla on Tuesday February 09, 2021 @10:30AM (#26078573)
It is possible to require confirmation before `ssh-add` allows to use a key. From `man ssh-add`:

     -c      Indicates that added identities should be subject to confirmation
             before being used for authentication.  Confirmation is performed
             by ssh-askpass(1).  Successful confirmation is signaled by a zero
             exit status from ssh-askpass(1), rather than text entered into
             the requester.
Re:Securing my personal SSH infrastructure with Yubikeys by yencabulator on Wednesday February 10, 2021 @03:33PM (#26094358)
The stupidest thing is that `-c` gives you no information about what you're approving. All an attacker needs to do is race an actual ssh call, and you'll happily okay it.
Re:Securing my personal SSH infrastructure with Yubikeys by jamiesonbecker on Tuesday February 09, 2021 @11:27AM (#26079373)
This slightly reduces risk, but it's inconvenient and probably better to just use agent forwarding as little as possible.