Post #3723745
2026-07-02 18:43 UTC
keep the key safe
This might be a dumb question, but can I assume the keys are safe in the standard .ssh directory on Linux? Is there anything I should explicitly do to secure the private key?
Replies (1)
-
@irmadlad@lemmy.world 2026-07-02 18:49
You should be good with caveats: Permissions on: ~/.ssh: chmod 700 ~/.ssh Permissions on private keys: chmod 600 ~/.ssh/id_rsa or id_ed25519, etc. Permissions on public keys: chmod 644 ~/.ssh/id_rsa.pub You can check with: ls -la ~/.ssh/