keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.89k stars 1.23k forks source link

Authorize or import from existing Keybase #24487

Open NoNoDeDev opened 3 years ago

NoNoDeDev commented 3 years ago

I'm on Linux. Recently I changed my laptop. I no longer have the old one, but have a copy of my old disk on my new one. I was logged on Keybase on my old laptop so I should still have everything that is needed to authenticate.

Can I use it to authorize my new laptop?

I tried to copy old_laptop_home_copy/.config/Keybase/ to ~/.config/Keybase, but it's not enough:

> keybase id

▶ ERROR Login required: to identify without specifying a user assertion

> keybase login

Your keybase username: ***
▶ WARNING Failed to reach system keyring (primary store (system keyring): failed to create item: No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/collection/login), falling back to secondary store (file-based secret store (see https://keybase.io/docs/crypto/local-key-security)). [tags:ENG=***,LOGIN=***]

The device you are currently using needs to be provisioned.
Which one of your existing devices would you like to use
to provision this new device?

What should I try?

kf5grd commented 3 years ago

Try keybase -H /path/to/old/home/directory whoami. If that works, you should use keybase -H /path/to/old/home/directory paperkey to generate a new paper key and use it to provision the new device. If that doesn't work, and you have no other devices or paper keys, you may need to reset your account and start over. Either way, when you get back to your account make sure you have a paper key somewhere safe for the next time this happens.

NoNoDeDev commented 3 years ago
> keybase -H old_laptop/home/nonodedev whoami

▶ ERROR dial unix /home/nonodedev/old_laptop/home/nonodedev/.config/keybase/keybased.sock: connect: no such file or directory

/home/nonodedev/old_laptop is read only because I want to avoid compromising those files. That could be the reason why it's failing.

I believe I should be able to restore everything by creating a new partition, reinstalling my Linux flavor, overwriting it with /home/nonodedev/old_laptop, then booting into it. For this reason I don't want to reset my account... But then I'll be unable to use it until I find the time to work on this.