News for hackers. Stuff that matters.
Re:Tofu: Do You Check? by upofadown on Friday September 22, 2023 @04:24PM (#37617291)
SSH could really use a better default key fingerprint. It's 42 characters of base64. So a hodgepodge of upper and lower case Latin characters with some numbers and special characters mixed in. Not even any spaces to give it some structure. Basically just the output of of a 256 bit hash dumped directly to the terminal.

Perhaps more people would check it if the usability was improved...

Re:Tofu: Do You Check? by bentcorner on Friday September 22, 2023 @04:36PM (#37617434)
Usability would be improved if there was a one-click way to verify it. Off the top of my head a QR code you could scan so it'd be enough "out of band" that the odds of a compromise affecting both paths would be unlikely. Ideally someone smarter than me would come up with a way that it wouldn't require TOFU at all.
Re:Tofu: Do You Check? by m-p-3 on Friday September 22, 2023 @05:48PM (#37618238)
A well-known URI that provides SSH keys would be nice.
Re:Tofu: Do You Check? by dambi0 on Friday September 22, 2023 @08:37PM (#37619558)
How would you encrypt / authenticate the URI? Assuming TLS adding this dependency to configure SSH may not be that desirable in some cases.

The original SSH threat model allowed for MITM, so you’d have to also allow for that happen to the SSH key distribution URI.

Context is key, it’s an interesting trade-off

Re:Tofu: Do You Check? by dinosaurdynasty on Friday September 22, 2023 @05:55PM (#37618310)
Or you know SSHFP records + DNSSEC to verify hostkeys.

Which is something OpenSSH already supports.

Re:Tofu: Do You Check? by tedunangst on Friday September 22, 2023 @05:01PM (#37617742)
Turn on ascii art.
Re:Tofu: Do You Check? by susam on Friday September 22, 2023 @06:36PM (#37618685)
> SSH could really use a better default key fingerprint. It's 42 characters of base64.

You can get an ASCII graphic for the host key with the VisualHostKey option. For example:

  ssh -o VisualHostKey=yes foo.local
Re:Tofu: Do You Check? by jjav on Friday September 22, 2023 @06:51PM (#37618818)
Yes, highly recommended. Easy to get used to the visual pattern of your important servers and notice if anything is off.
Re:Tofu: Do You Check? by lozenge on Friday September 22, 2023 @07:49PM (#37619237)
I would be interested in how good "looks like a cat to me" would be. It's trivial to generate 100,000 SSH keys and automatically select the most visually similar one. But would you notice the mismatch.
Re:Tofu: Do You Check? by CaptainFever on Saturday September 23, 2023 @12:28PM (#37624724)
The modern way seems to be a short string of emojis, ala Telegram voice calls.