Navigation
GuidesUpdated July 3, 2026

Creating SSH Keys for Non-User Accounts

guidesshsecuritykey-generationvaultservice-accountsed25519cryptography

Creating SSH Private and Public Keys for a Non-User

generate the private key

ssh-keygen -b 4096 -f ~/.ssh/YOURKEYNAME -t ed25519

You'll be prompted to provide a Passphrase. Generate one and store it in the Secret in Vault

Now, inside of ~/.ssh/ you should now see 2 files:

  • YOURKEYNAME
  • YOURKEYNAME.pub

The values of these files and the passphrase should be added to a Vault Secret with key:value pairings using the following Key names:

  • public_key : contents of YOURKEYNAME.pub
  • private_key : contents of YOURKEYNAME
  • private_key_passphrase : the passphrase you used when generating the keys