News for hackers. Stuff that matters.
Re:Poll HN: Do you use SSH certificates (not mere public-key... by theblazehen on Wednesday August 31, 2022 @11:07AM (#32663056)
There are none. In fact yours is already public: https://github.com/bshep.keys
Re:Poll HN: Do you use SSH certificates (not mere public-key... by bombcar on Wednesday August 31, 2022 @11:20AM (#32663275)
There is technically one minor one, which really isn't one - but you should be aware of.

Someone can take your authorized keys and add them to a box they control, and trick you into logging in.

However, this would trigger the "new host" warning SSH gives you, and you can minimize this by minimizing which hosts you allow your private keys to be used on.

And if someone is so actively trying to attack you they probably have more direct methods available.

Re:Poll HN: Do you use SSH certificates (not mere public-key... by dcow on Wednesday August 31, 2022 @12:38PM (#32664747)
What? How? What does putting my authorized keys file on another host do in terms of tricking me to log in? Authorized keys only matters on the host you are using when you type `ssh <some.host>`. The ssh client compares the public key of the remote host to the list in your `authorized_keys` file and, only if there is a match, skips serving you TOFU.

EDIT: I mixed up authorized_keys and known_hosts. But, the remote server doesn't need your authorized_keys file to grant you access so not sure the visibility of authorized_keys matters.

Re:Poll HN: Do you use SSH certificates (not mere public-key... by cubesnooper on Wednesday August 31, 2022 @12:40PM (#32664780)
You’re thinking of known_hosts, not authorized_keys.
Re:Poll HN: Do you use SSH certificates (not mere public-key... by dcow on Wednesday August 31, 2022 @12:47PM (#32664879)
You are right, I am. Now I understand the DNSSEC setup.
Re:Poll HN: Do you use SSH certificates (not mere public-key... by xorcist on Friday September 02, 2022 @07:50AM (#32689493)
Known_hosts can also be put in DNSSEC, using the SSHFP DNS record. OpenSSH understands that out of the box.
Re:Poll HN: Do you use SSH certificates (not mere public-key... by lapser on Wednesday August 31, 2022 @12:41PM (#32664802)
This wouldn't matter anyway because the server can just give you access regardless of the auth provided.
Re:Poll HN: Do you use SSH certificates (not mere public-key... by bombcar on Wednesday August 31, 2022 @01:19PM (#32665397)
I know you can restrict the methods on the client (and which keys you use) but can the client determine the host actually used it?
Re:Poll HN: Do you use SSH certificates (not mere public-key... by dcow on Wednesday August 31, 2022 @02:45PM (#32666595)
The remote host can do:

    fn authorized(peer: ClientConnection) -> bool {
      return true;
    }
Re:Poll HN: Do you use SSH certificates (not mere public-key... by folmar on Wednesday August 31, 2022 @05:30PM (#32668614)
Use `ssh -vv` and you'll see which methods are proposed and used.