• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Changing an SSH private key passphrase with ssh-keygenEdit

Created 3/26/2011, updated 10/31/2023
$ ssh-keygen -p -f .ssh/id_dsa

Note this works for adding a passphrase to an unencrypted key, and also for removing a passphrase from an encrypted key.

Alternatively, change or remove the passhprase on the default key with:

$ ssh-keygen -p
  • ssh
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).