Adding Or Changing A Passphrase

July 13, 2022 . 1 MIN READ

Update SSH Key Passphrase

Run the following command to change the passphrase of your SSH key:

ssh-keygen -p -f ~/.ssh/id_ed25519

You will be prompted to:

  • Enter your current (old) passphrase

  • Confirm the key comment (e.g., your email)

  • Enter a new passphrase (leave empty if you don’t want one)

  • Re-enter the new passphrase for confirmation

Once completed, your SSH key will be successfully updated with the new passphrase.

Reference:

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases#adding-or-changing-a-passphrase

Leave a Reply

Your email address will not be published. Required fields are marked *