I have a script that I use to setup new slices on slicehost and one of the steps is to add my public key to the authorized_keys
file. At the moment I scp
a key manually, but ideally I would have the script download the key.
So if my public key was very public what's the worst that could happen ? :)
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtKYac1ZiC43jF6BdclPok0Yv2g4YecBVJ6a7qggOSGjRAxh2cckwCBUR6VoVc2vmt9tcHCLWuVVpKUTUynbMdWq8wOdbK7Ud7n63cpg1PL44Hg9Wn2kT/aJdMMABSE5wSNsffxslcoUhF4h0mHaf+X6E5IKVhhHsy2g1yeoc2//0Q5YPt5Kj72VY1j3aeZ8a/tqSHu5rZpFYDddnv0ARWIgSvh7jUudKT9phLUiryX9TCyGVKFCrvVKwexjAmOz63pvWtX0TJughWskvDP1ZREkhjkxtCxofwn0NG1QSbbEgGYBLf3T1Pgfkhx83Uce01Aw1hBqdl228NRg0cv0KaQ==
There is a reason it is called a "Public Key" It is ment to be let out into the wild. the worst that could happen is that someone could encrypt files in such a way only your private key could decrypt it.
Now if you lose you private key ... that is a whole 'nother can o worms.
For PGP, whose encryption is fundamentally similar to what SSH does with public keys, public key servers are offered. Through them, the goal is to propagate public keys as widely as possible.
It's infeasible to reverse-engineer a private key from a public key. In fact, that's the whole point of public-key cryptography: given appropriate key lengths, it just can't be done, and the data will be secure no matter how widely the public key is shared.
(Note that "it just can't be done" is dependent upon certainly widely-held assumptions about higher mathematics not being proven false. But if that happens, you'll have bigger things to worry about...)
Your public key is... not your private key. Anyone can have a copy of your public key, no harm sharing it with the world.
A very old Question, But let me pitch in.... Can't stop..
Sharing your Public key on Wikipedia, or on a Public key ring is one thing, vs attaching this to the .authorized_keys on your Server, When you attach all of your Public key's to each of your server irrespective of the roles, then, you are exposing yourselves to a risk, If the private key is lost, All of your servers are compromised...