Help with SSH and public/private keys
I have SSH working between my PC when it runs Win2k and my Linux server.
I rebooted the client into Mandrake 9.1 to get SSH working so I can use CVS under Linux as well. I have my ~/.ssh/authorized_keys setup on the server, and this works because I can login to the server and use CVS from Win2k. I copied my private key (file identity) from my Win2k partition and put it in ~/.ssh/identity on my Mandrake home partition. When I try to SSH into the server, it works except I have to enter my password, as though I were logging in through telnet etc.... I presume this means that the private/public key combination isn't being used. Are there any steps that I missed? Is it ok to copy the private key from the Win32 partition and store it in my home directory? The private key begins with some plain text describing the format of the private key (and not the private key data). Any help appreciated Thanks |
try running ssh with the -v option, i have found this to be helpfull in debuging authentication issues
|
It does find my public key on the server:
Quote:
Quote:
|
I was having the same problem, I did another ssh-keygen, and just left the key name to the default id_rsa and id_rsa.pub and now it just prompts me for the ssh passphrase, not my user password
|
Re: Help with SSH and public/private keys
Quote:
I also use public key authentification since this is more secure and my /etc/ssh/sshd_config looks like: Quote:
I use putty to connect to the server. If you need more help just post! |
Re: Re: Help with SSH and public/private keys
Quote:
If you want a passwordless login then try this: 1) login as USER on the client (where you want to connect from) 2) ssh-keygen -t dsa (don't suppy a passphrase now - you can do that later once the first bit works) 3) scp /home/USER/.ssh/id_dsa.pub REMOTEHOST:/home/USER/.ssh/authorized_keys2 (you will need to enter your password this one time) 4) ssh REMOTEHOST |
All times are GMT -5. The time now is 07:35 AM. |