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

Notices


Reply
  Search this Thread
Old 07-02-2010, 12:44 PM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
SSH login with public key issue


Hi,

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?

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

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

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, 03:36 PM   #4
anomie
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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