On Sun, Feb 22, 2004 at 06:54:41PM +0000, Paul wrote:
On Sunday 22 February 2004 6:43 pm, Chris Green wrote:
I'm trying to set up an ssh connection to a remote system where I have a shell login account and I can't get it to do RSA (or DSA) authentication and not askk me for a password.
No help to you Chris, but I've also tried to set up the same type of system. Can we keep the replies posted to this list please...
Certainly, no problem. I have the passwordless login working on several systems so I may be able to help a bit anyway.
Basically you run ssh-keygen on the 'client' system and put the public key generated by that into the ~/.ssh/authorized_keys file on the target system.
Thus in ~/.ssh on the client system you will have:- identity identity.pub
... and you append the whole of the above identity.pub file to the ~/.ssh/authorized_keys file in your login on the target system.
The above is for SSH version 1. For version 2 it's similar but the file names are id_dsa.pub or id_rsa.pub depending on which type of key you generated with ssh-keygen.
ssh-keygen generates the above named files and puts them in .ssh by default.