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 do you manage SSH keys?

10 pointsby l00sedabout 4 years ago
Seems like Github&#x27;s move to SSH keys only is a good one. I suck at keeping my SSH keys organized and remembering what&#x27;s what. How do you keep your SSH keys organized?<p>Do you make notes in the .ssh&#x2F;config file? Do you use another tool to keep track of it? Is it a GUI tool or a TUI or CLI tool?

7 comments

flamboyant_rideabout 4 years ago
I use ssh key agent of keepassxc. This way only the public keys reside in the ~&#x2F;.ssh and all the private keys can be made usable by unlocking my keepassxc db(and unusable on locking the same). Keepassxc stores the passphrases, additional notes if any for the keys.<p>With a properly configured gitconfig, .ssh&#x2F;config I use different keys per domain(for different github accounts), different keys for different domains(ssh) and the like.
timmyc123about 4 years ago
I use SSH Config app on Mac (included with SetApp) for managing config.<p>I also use &#x27;Secure Agent&#x27; which generates the private key in the hardware secure element with unlocking via biometric (with fallback to password). <a href="https:&#x2F;&#x2F;secure-agent.lapanthere.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;secure-agent.lapanthere.com&#x2F;</a>
评论 #26581435 未加载
评论 #26570634 未加载
sigjuiceabout 4 years ago
I just use a single ssh key everywhere. The private key never leaves my laptop. Once in a while, I might want to clone one of my repos on my raspberry pi, in which case I use ssh agent forwarding.
评论 #26571767 未加载
asidialiabout 4 years ago
Are you gonna build something to solve this problem?<p>I’d be interested in collaborating if you are and would like a hand. I’ve had a domain name ready for this exact project for a couple years.
p0dabout 4 years ago
I run my own gitlab server and keep my keys in their own repo...understanding the ssh config file is a good investement of time.
swileyabout 4 years ago
ssh keys are tied to a user&#x2F;machine tuple. When I create a new user account or (re)build a machine I <i>always</i> generate new keys and <i>never</i> copy private keys anywhere.<p>If the machine is owned by me it will have a git repo with per-hostname branches that holds an authorized_keys file. It also has a script that symlinks dotfiles and merges authorized keys with .ssh&#x2F;id_rsa.pub and the local authorized keys file.
评论 #26571723 未加载
评论 #26571739 未加载
alexmingoiaabout 4 years ago
I keep everything with obvious names in ~&#x2F;.ssh, and I moved .ssh to iCloud and symlinked it for seamless backup.