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: What is your naming convention for SSH keys?

2 pointsby jamesponddotcoalmost 5 years ago
Last night I wrote a simple wrapper around ssh-keygen with (in)sane defaults[1], since every time I need to create an SSH key, I go through my bash history to remember what were the parameters I used before.<p>While writing it, it got me thinking: is there any sort of best practices for naming these keys, especially when you connect to many servers, and services using it?<p>Right now I just make silly references — e.g., the key I use for a server that I log in with username Moss, is called &quot;The Internet Key&quot;, as an IT Crowd reference —, and for the wrapper, I used a random suffix, and prefix generated with apg[2].<p>So, what do you folks use as a naming convention? If you were to generate keys for your customers, for example, what would you name them?<p>[1] https:&#x2F;&#x2F;git.sr.ht&#x2F;~jamesponddotco&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;.local&#x2F;bin&#x2F;gen-ssh-key<p>[2] https:&#x2F;&#x2F;manpages.ubuntu.com&#x2F;manpages&#x2F;focal&#x2F;man1&#x2F;apg.1.html

no comments

no comments