keybase / node-client

CLI for keybase.io written in/for Node.js
BSD 3-Clause "New" or "Revised" License
300 stars 32 forks source link

keybase login failure on 0.0.31 #128

Open ghost opened 10 years ago

ghost commented 10 years ago

This is with a passphrase that is known to be good. Used same passphrase to login on the machine where I created the key. Error occurs on the second machine on which I installed keybase. Advise if further debug info needed.

mba:~ tbecker$ keybase reset ; keybase --version ; keybase login
DANGER! Log yourself out, deregister this client, and remove local cache? [y/N] y
info: Removing file: /Users/tbecker/.keybase/session.json
info: Purging local cache: /Users/tbecker/.keybase/keybase.nedb
info: Updated file: /Users/tbecker/.keybase/config.json
info: success!
0.0.31
Your keybase username or email: tbecker
Your keybase login passphrase: ************
- run scrypt [==================================] 100%
info: Updated file: /Users/tbecker/.keybase/session.json
info: Updated file: /Users/tbecker/.keybase/config.json
- run scrypt [==================================] 100%
error: Signature mismatch or bad decryption key
maxtaco commented 10 years ago

I think I understand what is going on. The client is trying to pull your key from the server and after is does so, is trying to decrypt with the same password you used to login. I think in your case you used a different passphrase to lock your public key.

Try keybase pull? On Mar 7, 2014 10:10 PM, "Tony Becker" notifications@github.com wrote:

This is with a passphrase that is known to be good. Used same passphrase to login on the machine where I created the key. Error occurs on the second machine on which I installed keybase. Advise if further debug info needed.

mba:~ tbecker$ keybase reset ; keybase --version ; keybase login DANGER! Log yourself out, deregister this client, and remove local cache? [y/N] y info: Removing file: /Users/tbecker/.keybase/session.json info: Purging local cache: /Users/tbecker/.keybase/keybase.nedb info: Updated file: /Users/tbecker/.keybase/config.json info: success! 0.0.31 Your keybase username or email: tbecker Your keybase login passphrase: ****

  • run scrypt [==================================] 100% info: Updated file: /Users/tbecker/.keybase/session.json info: Updated file: /Users/tbecker/.keybase/config.json
  • run scrypt [==================================] 100% error: Signature mismatch or bad decryption key

Reply to this email directly or view it on GitHubhttps://github.com/keybase/node-client/issues/128 .

maxtaco commented 10 years ago

Sorry, to lock your private key. On Mar 8, 2014 12:00 AM, "Maxwell Krohn" themax@gmail.com wrote:

I think I understand what is going on. The client is trying to pull your key from the server and after is does so, is trying to decrypt with the same password you used to login. I think in your case you used a different passphrase to lock your public key.

Try keybase pull? On Mar 7, 2014 10:10 PM, "Tony Becker" notifications@github.com wrote:

This is with a passphrase that is known to be good. Used same passphrase to login on the machine where I created the key. Error occurs on the second machine on which I installed keybase. Advise if further debug info needed.

mba:~ tbecker$ keybase reset ; keybase --version ; keybase login DANGER! Log yourself out, deregister this client, and remove local cache? [y/N] y info: Removing file: /Users/tbecker/.keybase/session.json info: Purging local cache: /Users/tbecker/.keybase/keybase.nedb info: Updated file: /Users/tbecker/.keybase/config.json info: success! 0.0.31 Your keybase username or email: tbecker Your keybase login passphrase: ****

  • run scrypt [==================================] 100% info: Updated file: /Users/tbecker/.keybase/session.json info: Updated file: /Users/tbecker/.keybase/config.json
  • run scrypt [==================================] 100% error: Signature mismatch or bad decryption key

Reply to this email directly or view it on GitHubhttps://github.com/keybase/node-client/issues/128 .

ghost commented 10 years ago

Partly right. I did use a different passphrase to lock the private key, but doing keybase pull still fails with the same error. Is it automatically trying to use the same passphrase, and not giving me a chance to enter a different passphrase?

cypres commented 10 years ago

I also used a different password on keybase and to lock my private key, neither keybase login or keybase pull works, both fail with error: Signature mismatch or bad decryption key. I had to copy ~/.config/keybase and ~/.gnupg from backup.

marcaddeo commented 9 years ago

I'm also having the same problem, except on version 0.7.3 of the keybase node-client.

% keybase reset ; keybase --version ; keybase login
DANGER! Log yourself out, deregister this client, and remove local cache? [y/N] y
info: Removing file: /home/marc/.cache/keybase/session.json
info: Purging local cache: /home/marc/.local/share/keybase/keybase.idb
info: Updated file: /home/marc/.config/keybase/config.json
info: success!
0.7.3
Your keybase username or email: marcaddeo
Your keybase login passphrase: *********************
- run scrypt [==================================] 100%
info: Updated file: /home/marc/.cache/keybase/session.json
info: Updated file: /home/marc/.config/keybase/config.json
- run scrypt [==================================] 100%
error: Signature mismatch or bad decryption key

I also get the same error when i run keybase pull after I've logged in. My keybase passphrase and private key passphrase are different, for the record.

TomRegan commented 9 years ago

I also had the same issue, to get around I did

$ keybase pull
Your keybase login passphrase (to pull your private key from the server): 
# key passphrase, not login
info: Pulled secret key...

The wording of prompt is misleading. I guess it's making the assumption that your keybase passphrase is the same as your private key passphrase.