* Rename map topic * Delete map topic * Rename map topic * Add redirect * Remove last two map topics * Move article on adding a remote into a long-form guide * Move article on changing a remote's URL * Move articles on renaming and removing remotes * Move remote URL article * Fix typo * Remove category index file * Move a few articles to the new category * Move a few more files * Move managing remote repos article * Move the rest of the getting started with git map topic * Move the first half of the using git map topic * Move the rest of the articles and 🔥 the directory * Fix failing test * Remove Using Git from product index * Apply suggestions from code review Co-authored-by: Laura Coursen <lecoursen@github.com> * Apply suggestions from code review Co-authored-by: Laura Coursen <lecoursen@github.com>
42 lines
1.9 KiB
Markdown
42 lines
1.9 KiB
Markdown
---
|
|
title: Recovering your SSH key passphrase
|
|
intro: 'If you''ve lost your SSH key passphrase, depending on the operating system you use, you may either recover it or you may need to generate a new SSH key passphrase.'
|
|
redirect_from:
|
|
- /articles/how-do-i-recover-my-passphrase/
|
|
- /articles/how-do-i-recover-my-ssh-key-passphrase/
|
|
- /articles/recovering-your-ssh-key-passphrase
|
|
versions:
|
|
free-pro-team: '*'
|
|
enterprise-server: '*'
|
|
github-ae: '*'
|
|
topics:
|
|
- ssh
|
|
---
|
|
|
|
{% mac %}
|
|
|
|
If you [configured your SSH passphrase with the OS X Keychain](/articles/working-with-ssh-key-passphrases#saving-your-passphrase-in-the-keychain), you may be able to recover it.
|
|
|
|
1. In Finder, search for the **Keychain Access** app.
|
|

|
|
2. In Keychain Access, search for **SSH**.
|
|
3. Double click on the entry for your SSH key to open a new dialog box.
|
|
4. In the lower-left corner, select **Show password**.
|
|

|
|
5. You'll be prompted for your administrative password. Type it into the "Keychain Access" dialog box.
|
|
6. Your password will be revealed.
|
|
|
|
{% endmac %}
|
|
|
|
{% windows %}
|
|
|
|
If you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/github/getting-started-with-github/managing-remote-repositories) so you can use your GitHub password instead.
|
|
|
|
{% endwindows %}
|
|
|
|
{% linux %}
|
|
|
|
If you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/github/getting-started-with-github/about-remote-repositories/#cloning-with-https-urls) so you can use your GitHub password instead.
|
|
|
|
{% endlinux %}
|