LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-26-2020, 12:50 AM   #1
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Gnome and KDE "passwords and keys" tool can't import SSH key


I created a passphrase-protected SSH key as follows:
Code:
ssh-keygen -f mykey
On the command line, I copied the key to the SSH server, added it to ssh-agent and can now use it to access the server without having to enter the passphrase. All is good.

I thought I'd try the same with Gnome's keyring manager named Passwords and Keys. It has an import feature.

File->Import->Select mykey.pub opens a window with an error message:
Code:
Could not display "student@debuefi"
Reason: Cannot display a file of this type
student@debuefi is the identity of this key. I tried the KDE environment of the same machine. The tool is the same as on Gnome, and it issues the same error message.

I tried to grep the error message in /var/log and the systemd journal, but got no result. An internet search doesn't bring back anything either.

Where should I look for clues?
 
Old 03-27-2020, 10:52 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The file "mykey" is your private key which should never leave your machine. The file "mykey.pub" is the corresponding public key which is the one you would install in authorized_keys on other machines using ssh-copy-id. Since it is not secret, there is no reason to import it in the keyring manager.
 
1 members found this post helpful.
Old 03-27-2020, 11:08 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Original Poster
Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by smallpond View Post
Since it is not secret, there is no reason to import it in the keyring manager.
Well, when I use GPG, I find other people's/company's keys in the keyring, but also my own.

But I really wanted add mykey to the ssh-agent via the GUI (I guess I asked an xy-question) and am scratching my head how to do that.

Perhaps this only works with keys that I also generate in the GUI.
 
  


Reply

Tags
gnome, kde, keyring



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to import your existing SSH keys into your GPG key LXer Syndicated Linux News 0 04-25-2019 09:00 PM
[SOLVED] Don't understand how to use SSH keys with "ssh" and "scp" commands on Lubuntu maples Linux - Newbie 12 03-10-2014 10:09 PM
"Enter Key" not working, how to map "Enter Key" functionality to "F9" Key srinihi Linux - Newbie 1 04-03-2009 02:46 PM
SSH host keys VS SSH keys kenneho Linux - Security 3 09-11-2008 06:03 AM
function keys and gnome-terminal function keys and gnome-terminal fakie_flip Linux - Software 1 10-23-2007 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration