Seahorse: Export and Import Keyrings as backup
I am try to prepare a backup of my Ubuntu 18.04 including the Seahorse Keyrings. For that I use rsync to copy the content of /home/user/.local/share/keyrings/ to my NAS.
Then I copy this data to a second computer with Ubuntu 18.04 but Seahorse ignores the passwords containing *.keyring-files. If I manually try to import them Seahorse output this error message:
<file>.keyring
Could not display "<file>.keyring"
Reason: Unrecognised or supported data.
It seems like en encryption problem as described here. But decryption of especially the keyrings is not an option.
What is the appropriate way to restore backup keyrings or transfer them to an other computer?
backup nas keyrings seahorse
add a comment |
I am try to prepare a backup of my Ubuntu 18.04 including the Seahorse Keyrings. For that I use rsync to copy the content of /home/user/.local/share/keyrings/ to my NAS.
Then I copy this data to a second computer with Ubuntu 18.04 but Seahorse ignores the passwords containing *.keyring-files. If I manually try to import them Seahorse output this error message:
<file>.keyring
Could not display "<file>.keyring"
Reason: Unrecognised or supported data.
It seems like en encryption problem as described here. But decryption of especially the keyrings is not an option.
What is the appropriate way to restore backup keyrings or transfer them to an other computer?
backup nas keyrings seahorse
add a comment |
I am try to prepare a backup of my Ubuntu 18.04 including the Seahorse Keyrings. For that I use rsync to copy the content of /home/user/.local/share/keyrings/ to my NAS.
Then I copy this data to a second computer with Ubuntu 18.04 but Seahorse ignores the passwords containing *.keyring-files. If I manually try to import them Seahorse output this error message:
<file>.keyring
Could not display "<file>.keyring"
Reason: Unrecognised or supported data.
It seems like en encryption problem as described here. But decryption of especially the keyrings is not an option.
What is the appropriate way to restore backup keyrings or transfer them to an other computer?
backup nas keyrings seahorse
I am try to prepare a backup of my Ubuntu 18.04 including the Seahorse Keyrings. For that I use rsync to copy the content of /home/user/.local/share/keyrings/ to my NAS.
Then I copy this data to a second computer with Ubuntu 18.04 but Seahorse ignores the passwords containing *.keyring-files. If I manually try to import them Seahorse output this error message:
<file>.keyring
Could not display "<file>.keyring"
Reason: Unrecognised or supported data.
It seems like en encryption problem as described here. But decryption of especially the keyrings is not an option.
What is the appropriate way to restore backup keyrings or transfer them to an other computer?
backup nas keyrings seahorse
backup nas keyrings seahorse
edited Dec 29 '18 at 11:24
Alex44
asked Dec 29 '18 at 11:04
Alex44Alex44
1167
1167
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I found this post where @dobey pointed out that the keyring seahorse-daemon/service must not run throughout the keyring data will be overwritten.
In order to that I did this steps:
Turn on the target computer but not log in or log out.
Use an other computer to log in to my NAS using ssh. Then changing to the backup folder:
user@nas:~$ cd <path to backup>
Copy the keyring data to the target computer using scp:
user@nas:<path to backup>$ scp -r home/user/.local/share/keyrings/ <user>@<target ip>:.local/share/
Login at the target computer. Open Seahorse/keyrings. The copied keyrings shall be listed now (or updated).
Sitenote Something I recognised first within my tests: Seahorse keyrings are password protected and they keep the password from the origin computer. In my case it was the same as the user login. It may a good idea from now to use a different one ;).
The unfavourable part at this way is, that it needs a second computer or a computer with at least two accounts. But in case that only one computer is available, it may work with temporally turn of the keyring deamon:
Search how the service is spelled correctly and get the PID:
user:~$ ps -u user | grep seahorse
user:~$ ps -u user | grep keyring
1234 ? 00:00:00 gnome-keyring-d
Stop the service by killing the process using the PID from above (1234):
kill 1234
Copy the keyring data as described above (or on a way you prefer more).
Start the service:
user:~$ /usr/bin/gnome-keyring-daemon --daemonize
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
The approach with service gnome-keyring-daemon stop|start
results in this error: Failed to stop gnome-keyring-daemon.service: Unit gnome-keyring-daemon.service not loaded.
That's why I choose the way above. You may provide a correct way to handle this.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105329%2fseahorse-export-and-import-keyrings-as-backup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I found this post where @dobey pointed out that the keyring seahorse-daemon/service must not run throughout the keyring data will be overwritten.
In order to that I did this steps:
Turn on the target computer but not log in or log out.
Use an other computer to log in to my NAS using ssh. Then changing to the backup folder:
user@nas:~$ cd <path to backup>
Copy the keyring data to the target computer using scp:
user@nas:<path to backup>$ scp -r home/user/.local/share/keyrings/ <user>@<target ip>:.local/share/
Login at the target computer. Open Seahorse/keyrings. The copied keyrings shall be listed now (or updated).
Sitenote Something I recognised first within my tests: Seahorse keyrings are password protected and they keep the password from the origin computer. In my case it was the same as the user login. It may a good idea from now to use a different one ;).
The unfavourable part at this way is, that it needs a second computer or a computer with at least two accounts. But in case that only one computer is available, it may work with temporally turn of the keyring deamon:
Search how the service is spelled correctly and get the PID:
user:~$ ps -u user | grep seahorse
user:~$ ps -u user | grep keyring
1234 ? 00:00:00 gnome-keyring-d
Stop the service by killing the process using the PID from above (1234):
kill 1234
Copy the keyring data as described above (or on a way you prefer more).
Start the service:
user:~$ /usr/bin/gnome-keyring-daemon --daemonize
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
The approach with service gnome-keyring-daemon stop|start
results in this error: Failed to stop gnome-keyring-daemon.service: Unit gnome-keyring-daemon.service not loaded.
That's why I choose the way above. You may provide a correct way to handle this.
add a comment |
I found this post where @dobey pointed out that the keyring seahorse-daemon/service must not run throughout the keyring data will be overwritten.
In order to that I did this steps:
Turn on the target computer but not log in or log out.
Use an other computer to log in to my NAS using ssh. Then changing to the backup folder:
user@nas:~$ cd <path to backup>
Copy the keyring data to the target computer using scp:
user@nas:<path to backup>$ scp -r home/user/.local/share/keyrings/ <user>@<target ip>:.local/share/
Login at the target computer. Open Seahorse/keyrings. The copied keyrings shall be listed now (or updated).
Sitenote Something I recognised first within my tests: Seahorse keyrings are password protected and they keep the password from the origin computer. In my case it was the same as the user login. It may a good idea from now to use a different one ;).
The unfavourable part at this way is, that it needs a second computer or a computer with at least two accounts. But in case that only one computer is available, it may work with temporally turn of the keyring deamon:
Search how the service is spelled correctly and get the PID:
user:~$ ps -u user | grep seahorse
user:~$ ps -u user | grep keyring
1234 ? 00:00:00 gnome-keyring-d
Stop the service by killing the process using the PID from above (1234):
kill 1234
Copy the keyring data as described above (or on a way you prefer more).
Start the service:
user:~$ /usr/bin/gnome-keyring-daemon --daemonize
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
The approach with service gnome-keyring-daemon stop|start
results in this error: Failed to stop gnome-keyring-daemon.service: Unit gnome-keyring-daemon.service not loaded.
That's why I choose the way above. You may provide a correct way to handle this.
add a comment |
I found this post where @dobey pointed out that the keyring seahorse-daemon/service must not run throughout the keyring data will be overwritten.
In order to that I did this steps:
Turn on the target computer but not log in or log out.
Use an other computer to log in to my NAS using ssh. Then changing to the backup folder:
user@nas:~$ cd <path to backup>
Copy the keyring data to the target computer using scp:
user@nas:<path to backup>$ scp -r home/user/.local/share/keyrings/ <user>@<target ip>:.local/share/
Login at the target computer. Open Seahorse/keyrings. The copied keyrings shall be listed now (or updated).
Sitenote Something I recognised first within my tests: Seahorse keyrings are password protected and they keep the password from the origin computer. In my case it was the same as the user login. It may a good idea from now to use a different one ;).
The unfavourable part at this way is, that it needs a second computer or a computer with at least two accounts. But in case that only one computer is available, it may work with temporally turn of the keyring deamon:
Search how the service is spelled correctly and get the PID:
user:~$ ps -u user | grep seahorse
user:~$ ps -u user | grep keyring
1234 ? 00:00:00 gnome-keyring-d
Stop the service by killing the process using the PID from above (1234):
kill 1234
Copy the keyring data as described above (or on a way you prefer more).
Start the service:
user:~$ /usr/bin/gnome-keyring-daemon --daemonize
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
The approach with service gnome-keyring-daemon stop|start
results in this error: Failed to stop gnome-keyring-daemon.service: Unit gnome-keyring-daemon.service not loaded.
That's why I choose the way above. You may provide a correct way to handle this.
I found this post where @dobey pointed out that the keyring seahorse-daemon/service must not run throughout the keyring data will be overwritten.
In order to that I did this steps:
Turn on the target computer but not log in or log out.
Use an other computer to log in to my NAS using ssh. Then changing to the backup folder:
user@nas:~$ cd <path to backup>
Copy the keyring data to the target computer using scp:
user@nas:<path to backup>$ scp -r home/user/.local/share/keyrings/ <user>@<target ip>:.local/share/
Login at the target computer. Open Seahorse/keyrings. The copied keyrings shall be listed now (or updated).
Sitenote Something I recognised first within my tests: Seahorse keyrings are password protected and they keep the password from the origin computer. In my case it was the same as the user login. It may a good idea from now to use a different one ;).
The unfavourable part at this way is, that it needs a second computer or a computer with at least two accounts. But in case that only one computer is available, it may work with temporally turn of the keyring deamon:
Search how the service is spelled correctly and get the PID:
user:~$ ps -u user | grep seahorse
user:~$ ps -u user | grep keyring
1234 ? 00:00:00 gnome-keyring-d
Stop the service by killing the process using the PID from above (1234):
kill 1234
Copy the keyring data as described above (or on a way you prefer more).
Start the service:
user:~$ /usr/bin/gnome-keyring-daemon --daemonize
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
The approach with service gnome-keyring-daemon stop|start
results in this error: Failed to stop gnome-keyring-daemon.service: Unit gnome-keyring-daemon.service not loaded.
That's why I choose the way above. You may provide a correct way to handle this.
edited Jan 1 at 18:45
answered Dec 29 '18 at 20:21
Alex44Alex44
1167
1167
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105329%2fseahorse-export-and-import-keyrings-as-backup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown