{"meta":{"title":"SSH キーのパスフレーズのリカバリ","intro":"SSH キーのパスフレーズをなくした場合、ご使用のオペレーティングシステムによって、リカバリができることもあれば、SSH キーのパスフレーズを新たに生成することが必要なこともあります。","product":"認証","breadcrumbs":[{"href":"/ja/enterprise-cloud@latest/authentication","title":"認証"},{"href":"/ja/enterprise-cloud@latest/authentication/troubleshooting-ssh","title":"SSH のトラブルシューティング"},{"href":"/ja/enterprise-cloud@latest/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase","title":"SSH キー パスフレーズを回復する"}],"documentType":"article"},"body":"# SSH キーのパスフレーズのリカバリ\n\nSSH キーのパスフレーズをなくした場合、ご使用のオペレーティングシステムによって、リカバリができることもあれば、SSH キーのパスフレーズを新たに生成することが必要なこともあります。\n\n<div class=\"ghd-tool mac\">\n\n[macOS キーチェーンを使用して SSH パスフレーズを構成](/ja/enterprise-cloud@latest/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases#saving-your-passphrase-in-the-keychain)した場合は、リカバリできる場合があります。\n\n1. Finder で、**キーチェーン アクセス** アプリを検索します。\n2. キーチェーン アクセスで、**SSH** を検索します。\n3. SSH キーのエントリをダブルクリックして、新しいダイアログボックスを開きます。\n4. 左下隅で、 **\\[パスワードを表示]** を選択します。\n5. 管理者パスワードを入力するようプロンプトが表示されます。 \\[Keychain Access] ダイアログボックスに入力します。\n6. パスワードが表示されます。\n\n</div>\n\n<div class=\"ghd-tool windows\">\n\nSSH キーパスフレーズをなくした場合、リカバリの方法はありません。 代わりに personal access token を使用できるように、[新しい SSH キーペアを生成](/ja/enterprise-cloud@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)するか、[HTTPS 複製に切り替える](/ja/enterprise-cloud@latest/get-started/git-basics/about-remote-repositories#cloning-with-https-urls)必要があります。\n\n</div>\n\n<div class=\"ghd-tool linux\">\n\nSSH キーパスフレーズをなくした場合、リカバリの方法はありません。 代わりに personal access token を使用できるように、[新しい SSH キーペアを生成](/ja/enterprise-cloud@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)するか、[HTTPS 複製に切り替える](/ja/enterprise-cloud@latest/get-started/git-basics/about-remote-repositories#cloning-with-https-urls)必要があります。\n\n</div>"}