> Starting openssh 2.2.1 daemon does work okay and standard Password
> Auth does work fine too. But neither Version 1 RSA nor Version 2 DSA
> PublicKey Authentification does work.
>
> I tried all possible combinations with copying the appropriate files
> (identity.pub to authorized_keys and id_dsa.pub to authorized_keys2)
> as used under the old ssh2.0 (restricted version) but I just cannot
> establish a login with this PublicKey Auth. Always ssh switches back
> to Password Auth.
I ran into so many problems trying to figure this stuff out. The problem
I had was that there are differences between SSH and openSSH generated
keys. Using SSH (or secureCRT) clients and generating a private/public
key on your PC will need to be handled differently on your server with
openSSH installed. OpenSSH is smart enough to handle this. I have added
the following functions in my .bashrc or .aliases file in Linux.
function addpub() { ssh-keygen -X -f ~/.ssh/$1 >> ~/.ssh/authorized_keys2 ; }
function catpub() { cat ~/.ssh/$1 >> ~/.ssh/authorized_keys2 ; }
When you copy over a PC-generated public key, use "addpub ~/.ssh/xxx.pub"
When you create an openSSH public key, use "catpub ~/.ssh/xxx.pub"
If you are already in ~/.ssh then just use "catpub xxx.pub"
I no longer have trouble setting public keys by using these functions.
Thanks... Dan.