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!!!
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 . . .:))
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 /.
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.