Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have many public ssh keys.

Is a good idea show all of my public keys in web page?
maybe a gist or similar .


my problem is : when I create a new server, I have to manually copy the keys.

share|improve this question
good idea ? That entirely depends on why you want people to have your public ssh keys. – Sirex May 8 '12 at 1:53
Join the crowd: – cjc May 8 '12 at 1:55
@cjc , this guys share one key, I talk of the all of my keys – JuanPablo May 8 '12 at 1:58
Make sure you don't ignore any "HOST KEY IS DIFFERENT!1!" messages you get from your SSH client though. – Ignacio Vazquez-Abrams May 8 '12 at 2:47
up vote 8 down vote accepted

Sure, share away. There's a reason they are called public keys.

share|improve this answer
Unless there's some specific reason you don't want anyone to know that a particular public key is yours, there's no reason to keep them secret. (For example, one reason might be if you have access to a very critical machine and fear a $5 wrench attack.) – David Schwartz May 8 '12 at 2:13
@DavidSchwartz Good point. – EEAA May 8 '12 at 2:16

yes you can share your public key, it only can be used by you and nobody else as you the only one who has private key and without that key public key is useless, so you can share with everyone it makes no difference to you if someone else got it unless you have private key.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.