![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
ssh keys
chmod 700 the .ssh directory, authorized_keys file and the private key file.
|
|
#3
|
|||
|
|||
|
Also confirm you are not mixing OpenSSH keys with SSH2, you have to do a conversion between the two and they have different configuration.
|
|
#4
|
|||
|
|||
|
Hi BG_JrAdmin, porter
thanks for the tips. After changing the permissions and doing the conversion, it worked. |
|||
| Google The UNIX and Linux Forums |