TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

SSH Key Gen/Install Script. Automates Mass Distribution of SSH Keys

45 pointsby a904guyabout 14 years ago

5 comments

theBobMcCormickabout 14 years ago
Are you really generating a separate keypair for each server? Why?<p>Why not generate one key pair on your management host, and then use the standard "ssh-copy-id" command to push the public key out to each managed server?
评论 #2381417 未加载
duskwuffabout 14 years ago
Wait, it's creating a separate public key in your home directory on every device listed, all with the same (plaintext!) passphrase, then sets up every device to SSH to any other one? Smells like bad practice!
评论 #2381301 未加载
评论 #2381310 未加载
seaniebabout 14 years ago
It seems to be down for me.<p>Here's the Google cache: <a href="http://webcache.googleusercontent.com/search?q=cache%3Ahttp%3A%2F%2Fblog.mediafederation.com%2Fandy-hawkins%2Fssh-keygen-distribution-skd-install-ssh-keys-automatically%2F&#38;ie=utf-8&#38;oe=utf-8" rel="nofollow">http://webcache.googleusercontent.com/search?q=cache%3Ahttp%...</a>
评论 #2381302 未加载
lobster_johnsonabout 14 years ago
This seems wrong and overengineered for so many reasons. PHP, really? A simple one-line script will suffice to copy keys with ssh-copy-id or similar. (It gets even simpler if you use something like dsh or Capistrano.)
kilburnabout 14 years ago
An option in the config file to specify key length would be good IMHO.
评论 #2381723 未加载