{"meta":{"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.","product":"Authentication","breadcrumbs":[{"href":"/en/enterprise-server@3.22/authentication","title":"Authentication"},{"href":"/en/enterprise-server@3.22/authentication/troubleshooting-ssh","title":"Troubleshooting SSH"},{"href":"/en/enterprise-server@3.22/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase","title":"Recover SSH key passphrase"}],"documentType":"article"},"body":"# Recovering your SSH key passphrase\n\nIf 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.\n\n<div class=\"ghd-tool mac\">\n\nIf you [configured your SSH passphrase with the macOS keychain](/en/enterprise-server@3.22/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases#saving-your-passphrase-in-the-keychain), you may be able to recover it.\n\n1. In Finder, search for the **Keychain Access** app.\n2. In Keychain Access, search for **SSH**.\n3. Double click on the entry for your SSH key to open a new dialog box.\n4. In the lower-left corner, select **Show password**.\n5. You'll be prompted for your administrative password. Type it into the \"Keychain Access\" dialog box.\n6. Your password will be revealed.\n\n</div>\n\n<div class=\"ghd-tool windows\">\n\nIf you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/en/enterprise-server@3.22/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/en/enterprise-server@3.22/get-started/git-basics/about-remote-repositories#cloning-with-https-urls) so you can use a personal access token instead.\n\n</div>\n\n<div class=\"ghd-tool linux\">\n\nIf you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/en/enterprise-server@3.22/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/en/enterprise-server@3.22/get-started/git-basics/about-remote-repositories#cloning-with-https-urls) so you can use a personal access token instead.\n\n</div>"}