LinuxQuestions.org
Help answer threads with 0 replies.
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 02-01-2006, 12:02 PM   #1
gruell
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
Problem with ssh and authorized_keys...


I generated private and public rsa keys and installed my public rsa key on several machines in the .ssh/authorized_keys file. Everything works fine I can ssh to these machines without a pass word, except in on case. There is one account that still asks me for a password when I ssh to it. I have went through the steps of installing my public key several times but to no avail. Is there something I'm missing.

Thanks,

Kirk
 
Old 02-01-2006, 02:33 PM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Check the logs on both machines, usually in /var/log/secure. You should get some idea of why the key authentication isn't working.
 
Old 02-01-2006, 03:18 PM   #3
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Is it asking for your account password or your key passphrase? Some servers can be configured to require both the public/private keypair and the key's passphrase. Or it may be an order-of-authentication type of thing; for some (configuration) reason, password comes before keypair.
 
Old 02-01-2006, 03:30 PM   #4
gruell
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Dudydoo
Check the logs on both machines, usually in /var/log/secure. You should get some idea of why the key authentication isn't working.
Thank you. It turned out to be the users home directory permissions.

Kirk
 
Old 02-01-2006, 03:31 PM   #5
gruell
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by taylor_venable
Is it asking for your account password or your key passphrase? Some servers can be configured to require both the public/private keypair and the key's passphrase. Or it may be an order-of-authentication type of thing; for some (configuration) reason, password comes before keypair.
It turned out to be the users home directory permissions. Thanks,

Kirk
 
Old 02-01-2006, 03:40 PM   #6
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Great! I was going to suggest that, because that is a common mistake.
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM
problem with ssh. juanb Linux - Security 6 07-23-2003 03:11 AM
ssh users and authorized_keys ifm Linux - Security 3 06-12-2002 08:24 PM

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

All times are GMT -5. The time now is 09:56 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
Open Source Consulting | Domain Registration