TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

45 点作者 a904guy大约 14 年前

5 条评论

theBobMcCormick大约 14 年前
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 未加载
duskwuff大约 14 年前
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 未加载
seanieb大约 14 年前
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_johnson大约 14 年前
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.)
kilburn大约 14 年前
An option in the config file to specify key length would be good IMHO.
评论 #2381723 未加载