Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-02-2010, 01:44 PM   #1
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 584

Rep: Reputation: 30
SSH login with public key issue


I used to login to a server using ssh , public key authentication without password and it was working for years. Suddenly it was prompting for password when I try to login as the same user to the same server.

From the server ,I checked the key in $HOME/.ssh/authorized_keys and the public key is there . What may be the cause for it to suddenly prompt for password?

Old 07-02-2010, 02:03 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,701

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
What do the auth logs on the server say? (They're probably at /var/log/secure)
Old 07-02-2010, 03:10 PM   #3
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 584

Original Poster
Rep: Reputation: 30
The are no clue there in secure . They are showing " Accepted publickey for xxxx from mysystem " and suddenly they changed to "Failed password for xxxx from mysystem" as it is prompting for password now-a-days. Am sure that the config files related to this are not changed.
Old 07-02-2010, 04:36 PM   #4
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Make sure /home/youruser/.ssh and its contents are only readable by youruser. Make sure /home/youruser is only writable by youruser.


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
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 12:15 PM
automatic login by using ssh but with out creating public key siris Programming 2 04-12-2010 08:40 AM
SSH: Automated Login via public key not working kregec05 Linux - Server 11 08-19-2009 03:49 AM
ssh: is there any issue with adding my personal public key to authorized_keys? Meson Linux - Security 6 10-07-2008 01:27 AM
ssh using public key jkmartha Linux - Networking 1 05-04-2005 03:52 AM

All times are GMT -5. The time now is 09:56 PM.

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