# Don't keep your SSH keys on disk

- HackerByte page: <https://hackerbyte.net/en/stories/discusses-potential-security-risks-of-ssh-keys-stored-on-disk-and-alternative-st-50609579>
- Original source: <https://jola.dev/posts/you-cant-afford-ssh-keys-disk>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50609579>
- Submitted to Hacker News: 2026-11-23T09:55:38.000Z

Discusses potential security risks of SSH keys stored on disk and alternative storage methods.

## AI-generated summary

The author advocates for removing SSH private keys from disk, making them vulnerable to exfiltration by malicious code. By importing SSH keys into a password manager like Bitwarden and enabling its SSH agent functionality, developers can enhance security. This setup allows SSH connections and Git commit signing without keys residing directly on the local filesystem.

## Key points

- SSH private keys stored on disk are vulnerable to malicious code scanning.
- Import SSH keys into a password manager like Bitwarden.
- Enable the Bitwarden SSH agent and configure the SSH config file.
- Use SSH keys for signing Git commits for enhanced authenticity.
- Removing keys from disk improves overall system security and peace of mind.
