Is there a way to import existing SSH keys to Seahorse?
3 Answers
Export and Import Keys
Seahorse can import SSH keys from the clipboard or a key file. Seahorse allows users to specify a SSH key file. Seahorse does not change the content of imported files, instead, Seahorse copies the imported files to ~/.ssh with non-duplicated file names.
Seahorse can export public key or private key info to new files. Seahorse can copy public key info to the clipboard.
open seahorse -> file - import.
-
3Doesn't work for me on Ubuntu 10.10. It's as if Seahorse ignores the SSH keys. Feb 10, 2011 at 23:35
-
1Error while importing private and public keys: "file:///home/manager/Desktop/id_rsa: Invalid file format". Any thoughts?..– aneeshepFeb 16, 2011 at 5:06
-
1it seems a bug in seahorse but you can copy your private key to
.ssh/id_rsa
and your public key to.ssh/id_rsa.pub
, and it appeared in seahorse.– hhlpFeb 16, 2011 at 16:51 -
Same problem: "Invalid file format". Even tried copying the key and doing Edit->Paste Keys, as described in the Seahorse help. No luck. Nov 25, 2011 at 14:13
-
1I ran into the "Invalid file format" error, too. However, creating an id_rsa.pub file in the same folder fixed it. You can do this with
ssh-keygen -y
. Apr 9, 2012 at 9:15
There are bugs importing keys in "seahorse". Don't seem to be fixed in any release yet, but the bug gives workarounds.
https://bugs.launchpad.net/ubuntu/+source/seahorse/+bug/372608
if you have already generated the ssh key on the machine, then you should ssh to that machine, then execute this:
ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
user= your username of the system that you want to import
host= your pc hostname, the pc that you want to import key to.
What this happens is, that command calls the machine to send to your pc that you are trying to import the key.