LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-09-2010, 04:44 PM   #1
jjinno
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Rep: Reputation: 16
SSH crashes on login while any RSA/DSA keys exist


I have been trying to solve this issue for a while now, and have got nowhere...fast.

My company uses (as do many others) a common set of keys between the development machines. This has always seemed to work until recently... now the presence of any keys (server-side) causes the SSH server to crash, and the client immediately gets kicked.

The interesting part is that the ONLY clients who crash the server are the ones with the common keys. If you are an unknown host, then you are prompted with a login, and you can get in.

From the client you see this:
Code:
[root@localhost ~]# ssh localhost
Last login: Fri Apr  9 14:36:44 2010 from jjinno.foobar.local
Connection to localhost closed.
And from the server (the same box in this case) you see this:
Code:
Apr  9 14:37:59 cld10-2 kernel: sshd[19967]: segfault at 00000000000000f0 rip 00002b0bafc8d65b rsp 00007ffffd836c90 error 4
Now if all I do is move the public/private keys, I no longer segfault, and can get in...
Code:
[root@localhost ~]# mv .ssh/id_rsa ./
[root@localhost ~]# ssh localhost
root@localhost's password:
Last login: Fri Apr  9 14:37:59 2010 from localhost
Connection to localhost closed.
[root@localhost ~]# mv .ssh/id_rsa.pub ./
[root@localhost ~]# ssh localhost
root@localhost's password:
Last login: Fri Apr  9 14:40:39 2010 from localhost
But that kinda defeats the purpose of having password-less SSH...

Any ideas?
 
Old 04-09-2010, 04:48 PM   #2
jjinno
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Original Poster
Rep: Reputation: 16
Oh, and I have tried creating new keys:
Code:
[root@localhost ~]# ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa
Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
7a:cc:68:c1:88:b3:c3:84:6e:8c:1c:a1:75:78:8c:4e root@localhost
[root@localhost ~]# ssh localhost
root@localhost's password:
Last login: Fri Apr  9 14:40:55 2010 from localhost
Connection to localhost closed.
[root@localhost ~]# cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys2
[root@localhost ~]# ssh localhost
Last login: Fri Apr  9 14:46:21 2010 from localhost
Connection to localhost closed.
You can see that it does know the difference between passwordless and non... but the fact that it has to read the keys at all causes the crash.
 
Old 04-09-2010, 07:38 PM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Whenever I used ssh keys they had to be saved in .ssh/authorizedkeys2 but you have to make sure the permissions are correct (600)
Maybe it enforces that now after an update ?
Why are you testing this from localhost ?
Isn't that pointless ?
Maybe someones added a list of acceptable IP addresses and 127.0.0.1 isn't in the list ?

Last edited by smoker; 04-09-2010 at 07:40 PM.
 
  


Reply



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
Fedora 10: SSH dsa keys not working. ESC201 Linux - Software 12 01-05-2010 03:05 PM
GPG -- RSA or DSA with El Gamal for new keys butters33 Linux - Security 9 07-07-2009 12:26 PM
Is it possible to re-use RSA/DSA keys in different instances? astrogeek Slackware 2 11-24-2008 06:03 PM
ssh - rsa/dsa question. Infernal211283 Linux - Networking 1 12-25-2005 07:56 AM
SSH, DSA and RSA Rex_chaos Linux - Networking 0 03-22-2002 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:13 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