failed ssh login with keys

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users failed ssh login with keys
# 1  
Old 12-30-2007
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?
# 2  
Old 12-30-2007
ssh keys

chmod 700 the .ssh directory, authorized_keys file and the private key file.
# 3  
Old 12-30-2007
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  
Old 01-03-2008
Hi BG_JrAdmin, porter

thanks for the tips. After changing the permissions and doing the conversion, it worked.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies

2. Solaris

help with SSH keys

Hello, I could use some help with my ssh keys and agent. This is the issue. I have 2 different UNIX systems at work. One is the normal Solaris servers with my uid being the same throughout all the servers. I now have a different system for my desktop. A contractor came in and installed some SUN... (0 Replies)
Discussion started by: bitlord
0 Replies

3. AIX

Number of failed login using SSH Dictionary attack

Dears how to Block the connection after 3 to 5 login attempts using SSH Dictionary attack (1 Reply)
Discussion started by: thecobra151
1 Replies

4. AIX

ssh failed to login in remote connection

i am in node acbs01b and i use the root@fcbs01b to login and i have the below message . ssh root@fcbs01b @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT... (6 Replies)
Discussion started by: thecobra151
6 Replies

5. Solaris

passwordless login issue with ssh keys

Hi GUYS, Me have 2 servers, eg:: A & B key of B had been put in authorized_keys of A & Vice versa Passwordless login going from A to B. But while connecting from B to A ,its asking password Any one please help me out.. (6 Replies)
Discussion started by: racechap
6 Replies

6. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

7. UNIX for Dummies Questions & Answers

SSH keys

Hi everyone, i wanted to generate ssh keys so that i can include the public key in the remote sever, so that for subsequent logins, i can do away with the keying in of the password. I consulted the man ssh-keygen man pages. "..Normally each user wishing to use SSH with RSA or DSA... (1 Reply)
Discussion started by: new2ss
1 Replies

8. UNIX for Advanced & Expert Users

SSH Keys Help

Hello, I'm wondering if anyone has a step-by-step instruction set for setting up ssh keys? I've gone through many of the manuals online (most seem to be from the same source) and it's a little bit unclear when the documentation is talking about the server versus the client machine. I'm missing... (1 Reply)
Discussion started by: sysera
1 Replies
Login or Register to Ask a Question