3 ms·
Reminder to be cautious about leaking public keys. Once you leak your public key it could be used to check if another server recognizes that leaked public key.
by h43z 2mo ago
Reminder to be cautious about leaking public keys.
Once you leak your public key it could be used to check if another server recognizes that leaked public key.
- Zambyte 2mo agoWhat?
- h43z 2mo agoBy default SSH leaks all of the below public keys (if they exist) + all public keys in your ssh-agent to a server you connect to. ~/.ssh/id_ecdsa.pub ~/.ssh/id_ecdsa_sk.pub ~/.ssh/id_ed25519.pub ~/.ssh/id_ed25519_sk.pub ~/.ssh/id_xmss.pub ~/.ssh/id_dsa.pub running `ssh late.sh` would do exactly that. At the very bottom of the website they give you a command that would not leak your public keys. `ssh-keygen -t ed25519 -f ~/.ssh/late_throwaway && ssh -o IdentitiesOnly=yes -i ~/.ssh/late_throwaway late.sh` this would only send the late_throwaway public key
- Zambyte 2mo agoOkay, but why is that something to be concerned about? How would one be able to probe to see if a server recognizes a public key? Why does that matter?
- nntlol 2mo ago[dead]
- prodigycorp 2mo agoso, i used my public key. can someone please tell me what i should be worried about now?
- h43z 2mo agoIf I have your public key I could probe a server to see if it recognizes that public key. Which would tell me information you might not want to be leaked.
- Hugsbox 2mo agoCould you explain how/why that would be an issue? I still don't understand. Isn't the nature of public keys meant to be that they're public?
- dmux 2mo agoI think what the other comment is getting at is that you're essentially leaving footprints behind on various servers and that information could be used to narrow down who you are, where you work, etc. For example, if you used the same key pair for a work machine at the big social media site example.com as you did late.sh, they could probe example.com's machine and see that you'd been there.
- Hugsbox 2mo agoThat sounds like the kind of edge-case thing that wouldn't be even slightly a problem for like 99.9% of people.
- itsbczurstupid 2mo ago[flagged]
- ErroneousBosh 2mo agol33t h4xx0r5
- plaidwombat 2mo agoAll your base are belong to us. We recommend rotating keys more often than never.
- benj111 2mo agoSurely you shouldn't be leaking your username. I could use it to see if another server recognised 'h43z'....
- h43z 2mo agoOpenSSH server is designed not to reveal whether a username exists.
- alentred 2mo agoDid I miss something? Aren't public key are supposed to be public? To be clear, that's an honest question, not sarcasm of anything. I only assume I don't know about some corner case with SSH or something? Because we have those on our websites, they are supposed to be used to verify signatures, etc. How is publishing them bad?
- h43z 2mo agoIt's just something everyone should be aware of. It's up to you to decide if it's okay that you send a server provider (in this case late.sh) a bunch of your public keys which he could for example use to probe other servers to see if you have access to them. Everyone has different opsec.
- drabbiticus 2mo agoThe site does include a way to use a throwaway key and IIRC it was there last night too. ssh-keygen -t ed25519 -f ~/.ssh/late_throwaway && ssh -o IdentitiesOnly=yes -i ~/.ssh/late_throwaway late.sh Based on what another user said, you might want to modify the above command to use throwawayUsername@late.sh instead if you are going the throwaway route to be more certain you aren't leaking your OS username.