LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2011, 04:20 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,389

Rep: Reputation: 101Reputation: 101
Issue with creating new ssh key in Seahorse


I am attempting to connect from a Ubuntu 10.04 PC to another Ubuntu 10.04 PC called taylor9 and located at 192.168.0.109. I can do so in a terminal by ssh taylor9 and entering the password manually. When I attempt to create an Secure Shell key within Seahorse I receive the following error
Quote:
Couldn't configure Secure Shell keys on remote computer.
Received disconnect from 192.168.0.109: 2: Too many authentication failures for ken
I have deleted the key and tried again several times. Same issue. I deleted the key for another computer and recreated it in Seahorse. I noted that the last step in creating the key was for Seahorse to ask me for my password on the remote computer. In the case of creating the key for taylor9 I was NOT asked for my password. Thus when Seahorse attempted to connect to verify my credentials it failed and thus the error message shown above.

So my questions are... where is Seahorse picking up what it thinks is my password for taylor9 and how do I get Seahorse to ask me for the correct passoword?

TIA,

Ken
 
Old 09-15-2011, 06:45 PM   #2
ccolumbu
Member
 
Registered: Oct 2009
Posts: 37

Rep: Reputation: 4
I don't know about seahorse specifically, but you can just copy your ssh keys via rsync or scp to the remote taylor9 server.
Then simply put the keys in /<user home dir>/.ssh and make sure the owner is correct and the permissions are 600 o all files.
Remember you will need the authorized_keys file to allow a remote system to login to taylor9 and you will need the private key on the machine you are sshing from. Again make sure ownership and permissions are correct.
 
Old 09-16-2011, 09:25 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,389

Original Poster
Rep: Reputation: 101Reputation: 101
Thanks ccolumbu,

The issue really had nothing to do with the keys stored on taylor9. As to what it did have to do with...

I tried deleting ~/.ssh/known_hosts on taylor9 - no impact, this stores keys used to connect FROM taylor9

I tried the Windoze fix, rebooting taylor9 - no impact

I tried creating a key in seahorse on a VMWare Ubuntu virtual machine to connect to taylor9. Worked fine. Asked me for the taylor9 password and created the key. This VM had never connected to taylor9 before and had no entries in known_hosts.

Back on my physical PC where the problem occurs I tried connecting to another PC, taylor13. I already had a key created for this PC. I deleted the key and recreated it. I was asked for my password to taylor13. The key was created. When I tried to connect to taylor13 from a terminal I received the error "agent admitted failure to sign using the key". A quick search suggested a fix to that - logout and login. I did so and the issue was fixed.

The create a key for taylor9 issue was ALSO FIXED. Apparently something was cached in memory and the logout/login cleared it. While I am pleased that I now have a working key for taylor9 I am not pleased that credentials are being cached in memory.

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
automatic login by using ssh but with out creating public key siris Programming 2 04-12-2010 08:40 AM
How can I import a public key into seahorse? abefroman Linux - Software 1 10-22-2009 01:46 AM
clicking on .pgp files only opens the seahorse key manager - why ? emuub Linux - Software 1 05-03-2009 02:53 AM
LXer: SSH Key Authentication Using seahorse (GUI) LXer Syndicated Linux News 0 02-15-2008 04:00 AM
seahorse on FreeSBIE ( export private key ) shakespeare *BSD 0 04-22-2005 02:29 PM


All times are GMT -5. The time now is 06:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration