Re: ssh-add problem



john wrote:
The following output describes my problem:

richard@debian:~/Desktop$ ssh-add -c ~/.ssh/id_rsa
Enter passphrase for /home/richard/.ssh/id_rsa:
Bad passphrase, try again for /home/richard/.ssh/id_rsa:

What am I doing wrong?

"Bad passphrase" says that the passphrase you typed in did not match
the one used on the file. They did not match. The file was not
decrypted and could not be used. It failed and retried giving you the
chance to try again and answer the passphrase question correctly. It
asked you for the passphrase again. You need to supply the same
passphrase that you used when you created the file with ssh-keygen.

I get similar response if I use ssh-keygen.

ssh-keygen is used to create that file (and to manage it later) and to
set a passphrase upon it. The file is encrypted so that if the file
is copied (from the live file or from backup) then it can't be used
without knowing the passphrase to decrypt it.

If you have forgotten your passphrase and cannot remember it then
there is no way to recover it. You would need to create a new key and
set a new passphrase upon it. Then you would need to update all
remote host locations that are using it in the ssh authorized_keys
file.

Bob

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Inexcusable weakness in Kmail / GnuPG
    ... a journo, i can't take any chances, so i don't keep my passphrase in memory. ... So i decrypt the incoming message, and then i reply to it ... If you forward an encrypted memo as an attachment, ... While it's always good for us to be paranoid, ...
    (Bugtraq)
  • Re: encrypted home directory / wrapped-passphrase
    ... YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE ... however, when i move that file, my home directory no longer gets ... Yep -- the ecrypfs utils will automagically decrypt this passphrase, ...
    (Ubuntu)
  • Question about password checkin
    ... I want to do a symetric crypt program wich crypt and decrypt file using a ... To decrypt a file, a dialog box will ask a pass-phrase. ... When entering passphrase for decrypting, I decryp the complete file, I ... compute the hash and I compare. ...
    (sci.crypt)
  • [opensuse] UPDATE: gpg2 pass phrase problem.
    ... And more importantly how do I get it to NEVER EVER cache the passphrase. ... from the same command shell 2 seconds ago. ... or if the pinentry popup passphrase input box doesn't wait ... I do NOT expect gpg to decrypt the file based on ...
    (SuSE)
  • Writing to a Process
    ... I'm trying to decrypt a file using GPG and starting it via a ... to write the passphrase to the process using the StandardIn stream. ... nothing is ever sent to the process window. ... DotNetProcess myProcess = new DotNetProcess; ...
    (microsoft.public.dotnet.languages.csharp)