Greetings I seem to be missing a step. on the server I run ssh-keygen -t rsa or dsa I copy id_rsa.pub into authorised keys on my workstation. The I try log in and it still asks for the password. what is missing? -- -- Chadley Wilson Production Line Superintendant Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================
I copy id_rsa.pub into authorised keys on my workstation. The I try log in and it still asks for the password.
Okay, let's think of a few things off the top of my head.. The file you want to put the pubkey in should be $HOME/.ssh/authorized_keys - note the spelling. The pubkey should be on one line only, avoid terminal-caused line breaks when pasting. Does your pubkey have a passphrase? If so, is it that that you're being prompted for? -- James Ogley james@usr-local-bin.org GNOME for SuSE: http://usr-local-bin.org/rpms
On Friday 17 June 2005 01:54 am, Chadley Wilson wrote:
Greetings
I seem to be missing a step.
on the server I run ssh-keygen -t rsa or dsa
I copy id_rsa.pub into authorised keys on my workstation. The I try log in and it still asks for the password.
what is missing?
I believe you need to put the key into auth keys on the machine you are logging into... you didn't really make it clear which machine you were talking about. I run ssh-copy-id -i id_dsa.pub <user>@<machine> and it does the job.
-- -- Chadley Wilson Production Line Superintendant Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================
On Friday 17 June 2005 16:00, Bruce Marshall wrote:
On Friday 17 June 2005 01:54 am, Chadley Wilson wrote:
Greetings
I seem to be missing a step.
on the server I run ssh-keygen -t rsa or dsa
I copy id_rsa.pub into authorised keys on my workstation. The I try log in and it still asks for the password.
what is missing?
I believe you need to put the key into auth keys on the machine you are logging into... you didn't really make it clear which machine you were talking about.
I run
ssh-copy-id -i id_dsa.pub <user>@<machine>
and it does the job.
Indeed it does, Thanks for the lesson Bruce, it work wonderfully. :) -- Chadley Wilson Production Line Superintendant Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================
On Friday 17 June 2005 06:54, Chadley Wilson wrote:
on the server I run ssh-keygen -t rsa or dsa
I copy id_rsa.pub into authorised keys on my workstation. The I try log in and it still asks for the password.
So you are using the server to try and log in to your workstation? I think maybe you have it the wrong way round... a)generate the key on your workstation b)copy the public key to the server, in /home/useryouloginasontheserver/.ssh/authorized_keys c)unlock the private key on your workstation d)log in to the server Hope that helps, H
participants (4)
-
Bruce Marshall
-
Chadley Wilson
-
Hamish
-
James Ogley