authorized_keys and passwordless login

I am trying to set up ssh/scp to be able to login in w/o using a password. The man pages for ssh and ssh-keygen explain how to do this.

So, using "rsa1" style, I created the public and private keys by way of ssh-keygen, then added the contents of "$HOME/.ssh/identity.pub" to a newly created "$HOME/.ssh/authorized_keys" file on the remote system I am want to log into.

But, it is still asking me for a password when I ssh to the remote server. I did not use a passphrase, either, when creating the keys by way of ssh-keygen.

What am I doing wrong????? I also found this resource on the web, and it verifys that I am doing this step by step.

If anyone has done this, please let me know what I am doing wrong!!!

Thanks in advance,

MC

Problem was . . . ssh was expecting SSH2/protocol 2. So, I used the -oProtocol=1 option on the ssh/scp commands, and it works!!!

You can either manually override it using the above -o option, or change the Protocol in ssh_config(default is 2,1, meaning that version 2 is tried first and falls back to version 1 if 2 is not available, that is why I was getting hosed . . .:))

MC

Hey,

I am facing the same problem as you did. But using the -o option manully and trying also is not resolving the problem...

Any suggestions.....Basically, i got it working from machine A to B...i am not able to do so from B to A

Here's one thing to check....authorized_keys will be ignored if it is writable or could be replaced by anyone other than you. So $HOME must be writable only by you. Ditto $HOME/.ssh and $HOME/.shh/authorized_keys. This also applies to the parent directory of $HOME all the way back to /.

Perderabo

This is my folder structure..

/home/ravala/.ssh

ravala and ssh are writable only by me. I dont have permissions to change the properties of home.

But still it prompts for password.

Hi,

I got this working, but not sure how this worked. I deleted all the old keys and created new keys . Also checked the folder permission as Perderabo suggested. It works fine now without any password prompt.

Thanks for all your help

Hi guys,

I'm bumbling through something similar.

I'm having trouble understanding the client server terminology.

I have a Laptop with Redhat linux on, and I'd like to back the hard disk up, across my home LAN to a Sun Solaris 8 server.

In this case, which is regarded as the server and which is the client?

Many thanks and kind regards,

Stin