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.

Ask HN: How does your company handle SSH keys

10 pointsby tosbournover 9 years ago
Our team is reaching a size when we probably need to get serious about SSH key management.<p>I was wondering how different places handle how dev&#x27;s get access to servers. A shared key? A gatekeeper? Public keys added to all servers?<p>What practices and tools do you use in order to manage this?

5 comments

herbstover 9 years ago
We use puppet and add our public keys to all servers. IMHO a nice solution, but clearly a lot of work without something like puppet.
评论 #10862246 未加载
评论 #10860114 未加载
评论 #10860115 未加载
mattbillensteinover 9 years ago
ansible pushes authorized_keys to all the boxes -- there&#x27;s a different keys file for different &quot;clusters&quot; -- dev&#x2F;prod&#x2F;staging. Most of the users&#x27;s keys are the same between these files, but it gives you the ability to have users who have access to dev&#x2F;staging but not prod pretty easily. All of this config lives in the main git repo.<p>Even if your initial solution is just to copy an authorized_keys file to each box, check that into git. You can just have a small shell script checked in as well that copies the relevant file to the relevant boxes...<p>Also, always have a backdoor account that uses a key you have and isn&#x27;t updated this way so if someone biffs the key file you push, you don&#x27;t lock yourself out.
therealidiotover 9 years ago
Recently learned of openssh&#x27;s AuthorizedKeysCommand option, and I&#x27;ve been wondering if it could be used to set up a central &quot;authorised keys&quot; server.
评论 #10871313 未加载
shakkharover 9 years ago
My current company is small. Our servers are in AWS. You can ask AWS to pre-populate authorized_keys when launching servers.<p>In my old company my team maintained a bunch of microservices running on AWS. we used basically the same strategy, except there was one key for each service. Our application server ran on our own datacenter. Access to that was granted through LDAP, not SSH keys.
mehta_aprilover 9 years ago
Is there a open source framework, which could be used for SSH keys management?
评论 #10862635 未加载