this post was submitted on 21 Dec 2025
61 points (98.4% liked)

Selfhosted

53861 readers
392 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

My ssh keys are oldMany times I had the Idea to replace them and cleanup. Put the approach feels old not intuitive and i'm affraid of problems.

How do you manage keys and get sure they do ot get to old.

you are viewing a single comment's thread
view the rest of the comments
[–] Anekdoteles@feddit.org 1 points 16 hours ago (1 children)

Wouldn't automation based on your approach be really easy? Like correct me if I'm wrong, but I assume you just need a chron job executing ssh-keygen on your localhost, adding the new pub to ansible, rolling out and removing the old, right?

[–] solrize@lemmy.ml 1 points 8 hours ago

It's possible but I haven't felt the need, and it's another thing that can go wrong. If I think my key may have been compromised I have much bigger problems. I should assume my whole machine is pwned and trojan'd, so I should replace the disk and reinstall everything.

I can see some benefit in using a special token to hold the key instead of just generating it on my laptop. One of these days.