News for hackers. Stuff that matters.
Re:Is Anybody Using This Private Key by ignoramous on Friday July 04, 2025 @11:32AM (#44465404)
Do not give out your private keys anywhere except where they're needed. They are meant to be private for a reason.

If this service was serious, it'd instead rely on fingerprints (sha256/sha512) and not the key itself.

Re:Is Anybody Using This Private Key by mr_toad on Friday July 04, 2025 @11:45AM (#44465524)
Is there any case where they ever need to be shared? If you need a login, generate a new one.
Re:Is Anybody Using This Private Key by chrisweekly on Friday July 04, 2025 @11:49AM (#44465561)
Yeah, I'd strike "except where they're needed". Never share a private key.
Re:Is Anybody Using This Private Key by IgorPartola on Friday July 04, 2025 @11:56AM (#44465614)
One of the best things you can do is generate a key per device, not per person. That way if you lose your phone you just revoke that key and not the one that you use on your tablet, work laptop, home desktop, etc.

Bonus points: monkeysphere and certificate based auth are two other great solutions for making sure the ssh server you log into is not doing a MITM on initial connection (you know, the part where it asks you to manually verify the fingerprint of the server key and you likely just hit y instead).

Forwarding your ssh agent to a host that you don’t know for certain is not doing a MITM attack on you can be devastating, as is entering a password into same.

Re:Is Anybody Using This Private Key by munchler on Friday July 04, 2025 @12:06PM (#44465702)
But that way you can only use each key on that one device. E.g. No starting a private conversation on your phone and then continuing it on your desktop later.
Re:Is Anybody Using This Private Key by IgorPartola on Friday July 04, 2025 @01:16PM (#44466257)
The service you use should allow you to add more than one key and create a symmetric encryption key for the conversion. Your private key identifies your device, the service should know that you own multiple devices.
Re:Is Anybody Using This Private Key by msgodel on Friday July 04, 2025 @01:25PM (#44466344)
Are there really people who don't do this? Copying private keys around just feels gross like copying binaries around.
Re:Is Anybody Using This Private Key by nisegami on Friday July 04, 2025 @11:57AM (#44465618)
My company's system admins don't know how to do that unfortunately.
Re:Is Anybody Using This Private Key by bornfreddy on Friday July 04, 2025 @12:05PM (#44465683)
No worries, I'm sure there are lots of webpages that will generate private keys for them. For free.
Re:Is Anybody Using This Private Key by hinkley on Friday July 04, 2025 @12:59PM (#44466120)
There is not. I worked on a code signing project, and there was this guy who I as already warned had a bit of Dunning Kruger going on, but would later discover was also a bit of an ineffectual bully as well, when he got into an argument with both me and a customer.

Not long after the first milestone of a project with lots of milestones he announced he intended to have me to generate ‘real’ keys for the project and send him the key pairs over Outlook Encryption. For a project with public safety concerns written all over it, and would later have me pick multiple Hardware Security Modules for different steps of a multi-signature chaining process.

He tried to get me into trouble for telling him, politely, that he could fuck right off. And then had to talk to everyone he tried to tattle to about why he was a dumbass and that we were at least a year (turned out to be three) before we needed “real” keys - we were actually about four months from even needing fake keys for integration testing, let alone real keys. And I was be writing up runbooks for doing that rather than doing it for people.

The thing I would soon discover about signing keys is that everyone thinks they are a magic incantation of math. They’re just math. The magic is not inside the box, the magic is the box. It’s like a clean room: It’s a room full of nothing. What makes it special is all the work you do trying to prevent something from happening to it.

I stayed on that project almost a year past where there was any code they needed me to write (except for one bad bug I would find in my code a few months later), but they still needed me to teach them behavior, to lock in that clean room mindset.

Re:Is Anybody Using This Private Key by uniqueusername7 on Friday July 04, 2025 @02:21PM (#44466770)
How would I get my ssh keys to the remote server from a new machine? To me, the easiest way seems to be either sharing private keys from a different machine, or having some way to deterministically generate keys from a password or keyphrase, and the latter seems more secure to me because I don't have to trust a middle man to do the transferring.
Re:Is Anybody Using This Private Key by mr_toad on Friday July 04, 2025 @10:44PM (#44469752)
Generate a new private/public key pair on the new machine and then copy the public key (from the new machine) into the authorised keys (on the server) using a login that already has access (e.g. from the old machine).
Re:Is Anybody Using This Private Key by goopypoop on Friday July 04, 2025 @12:03PM (#44465673)
"Never unless necessary" is unhelpful for anything
Re:Is Anybody Using This Private Key by FearNotDaniel on Friday July 04, 2025 @12:35PM (#44465916)
Yeah reminds me of the time a real UK bank employee insisted that I should give him an SMS onetime code, even telling me to ignore the part of the message that I should never give the code to anyone else, not even a bank employee. I verified by other means that both he and the transaction were genuine but absolutely refused to give him that code no matter how he tried to spin it, and solved the issue a different way. Whatever manager created that ad hoc process needs to get fired.
Re:Is Anybody Using This Private Key by mightysashiman on Friday July 04, 2025 @11:54AM (#44465597)
Wouldn't it being making the matter worse? You wouldn't know if it's a collision of the hash or of the keys themselves
Re:Is Anybody Using This Private Key by nativeit on Friday July 04, 2025 @02:58PM (#44467007)
Assuming for the sake of argument this were a real service checking for matches, the chances of a hash collision with SHA256 is effectively 0.[1] I entered the limit for BIGINT (9223372036854775807), and the approximation of the probability of a hash collision after generating 9223372036854775807 items in SHA256 is zero. The exact probability would probably take eons to calculate, but it's vanishingly close to zero.

1. https://kevingal.com/apps/collision.html

Re:Is Anybody Using This Private Key by gblargg on Friday July 04, 2025 @12:22PM (#44465819)
Scammer: your private key is needed.

Oh, OK.