The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Last Failed Login gilberteu SUN Solaris 2 08-06-2007 07:32 PM
Denying IPaddress for Multiple Failed Login Attempts metzgerh AIX 1 12-13-2006 01:13 PM
Hot Keys cwtlr UNIX for Dummies Questions & Answers 2 12-01-2006 10:50 AM
failed login time limit zuessh AIX 2 05-24-2006 11:19 AM
arrow keys / special keys raguramtgr UNIX for Dummies Questions & Answers 3 02-19-2004 11:45 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2007
Registered User
 

Join Date: Jan 2006
Posts: 126
failed ssh login with keys

Hi all,

i have generated a pair of keys so that i can login via SSH without entering my password.

I am using putty to login. After putting the public key on the server,then logging through putty, i get the message "Server refused our key" on screen. At the same time, /var/log/secure is showing "Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys".
Any advise? The permission for the directory /user is "drwx------". The permission for .ssh is "drwxrwxr-x". The permission for the file authorized_keys is "-rw-rw-r--"

What am i missing out? Do i have to configure SSH to allow log in using keys?
Reply With Quote
Forum Sponsor
  #2  
Old 12-30-2007
Registered User
 

Join Date: Feb 2005
Posts: 137
ssh keys

chmod 700 the .ssh directory, authorized_keys file and the private key file.
Reply With Quote
  #3  
Old 12-30-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Also confirm you are not mixing OpenSSH keys with SSH2, you have to do a conversion between the two and they have different configuration.
Reply With Quote
  #4  
Old 01-03-2008
Registered User
 

Join Date: Jan 2006
Posts: 126
Hi BG_JrAdmin, porter

thanks for the tips. After changing the permissions and doing the conversion, it worked.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0