this post was submitted on 24 Nov 2026
-34 points (23.4% liked)

Selfhosted

64018 readers
683 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] bhhaskin@lemmy.bitsofsimplicity.com 16 points 1 day ago (1 children)

Yeah if you are really concerned then use a yubikey or smart card.

[–] i_am_not_a_robot@discuss.tchncs.de 8 points 1 day ago (1 children)

I've never tried it, but another option is ssh-tpm-agent or tpm2-pkcs11. Basically they use the TPM as a non-removable smart card, which is free and potentially more secure than a regular smart card because a smart card can't normally verify the integrity of the OS that is talking to it. If you're connecting from a Mac, Apple's system is called Secure Enclave.

[–] jj4211@lemmy.world 1 points 1 hour ago

However the "non removable" part gets you back to being susceptible to malware. If you are afraid malware can read your disk, then malware can further submit signing requests to any online ssh key mechanism.

So having a removable device at least means you know beyond any shadow of a doubt that not only is your key credibly protected, but use of your key is outright impossible when not plugged in.