I am installing Ubuntu on a new machine. How can I back up all the entries in Passwords and Keys (aka Seahorse aka GNOME Keyring), so I can transfer them to the new machine?
I am installing Ubuntu on a new machine. How can I back up all the entries in Passwords and Keys (aka Seahorse aka GNOME Keyring), so I can transfer them to the new machine?
Keyring data is stored in several places:
"Passwords" (GNOME Keyring data) are stored in
~/.local/share/keyrings
"Secure Shell" data (SSH keys) are stored in
~/.ssh
"PGP Keys" (including GPG keys) are stored in
~/.gnupg
You will need to backup and restore each of these folders. Preferably don't use a flash drive to do this (see note below). When restoring the folders, make sure the permissions are set correctly (see note below).
Note on flash drives
You should avoid using a flash drive to store/transfer keys, even temporarily, since deleted data is easily recoverable from a flash drive unless you take precautions, like encrypting the drive. If you have a network connection, transfer over ssh would be both convenient and secure.
Note on permissions
When you restore the folders, they need the correct ownership permissions, which you can apply as follows:
References: