Search code examples
sshssh-keysopenssh

How do I verify/check/test/validate my SSH passphrase?


I think I forgot the passphrase for my SSH key, but I have a hunch what it might be. How do I check if I'm right?


Solution

  • You can verify your SSH key passphrase by attempting to load it into your SSH agent. With OpenSSH this is done via ssh-add.

    Once you're done, remember to unload your SSH passphrase from the terminal by running ssh-add -d.