Recovering your SSH key passphrase
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.
If youconfigured your SSH passphrase with the macOS keychain, you may be able to recover it.
- In Finder, search for theKeychain Access app.
- In Keychain Access, search forSSH.
- Double click on the entry for your SSH key to open a new dialog box.
- In the lower-left corner, selectShow password.
- You'll be prompted for your administrative password. Type it into the "Keychain Access" dialog box.
- Your password will be revealed.
If you lose your SSH key passphrase, there's no way to recover it. You'll need togenerate a brand new SSH keypair orswitch to HTTPS cloning so you can use a personal access token instead.
If you lose your SSH key passphrase, there's no way to recover it. You'll need togenerate a brand new SSH keypair orswitch to HTTPS cloning so you can use a personal access token instead.