How to reset or change the passphrase for a GitHub SSH key?

Tech MLG picture Tech MLG · Apr 17, 2012 · Viewed 148.3k times · Source

I have forgoten my passphrase in Git. How do I reset it? I found two solutions on Stack Overflow, but I want to know what process to follow to reset it or to get it.

Answer

manojlds picture manojlds · Apr 17, 2012

You can change the passphrase for your private key by doing:

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