ssh-key authentication failing on one machine
Hey guys,
Perhaps I'm totally overlooking something here, but I'm having problems with ssh authentication on just one of the Linux machines on my network. Using ssh-keygen -t rsa on my laptop, I create a public key (id_rsa.pub) which I leave in ~/.ssh. On the host machine, I take a copy of the key and place it in ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2 - it all seems fairly normal so far. However, when I try to log in from the laptop, I get prompted for the password as if the key hadn't been registered. How odd! Here's a verbose transcript of the ssh session's authentication attempts: Code:
debug3: authmethod_is_enabled publickey christo |
christo,
It seems that you are missing the private key. It should be in "id_rsa". Note that it is the private key and should be on the client machine (laptop). Make sure the permissions are 0600 (only user can read/write). The id_rsa.pub is the public key and should be the one that goes into the "server" authorized_keys file. But I think that's what you did, right? Have fun, chris |
hey chris,
thanks a lot for the reply.. Code:
[chris@kerenski .ssh]$ ls -al hurrumph ! christo |
christo,
I started playing around with my ssh setup. I suspect that brezhnev doesn't have the proper authorized_key file. Try using the debug option on the server to see the difference between public key auth or not. Instead of having two authorized key files, concatenate the files together. authorized_keys2 isn't getting processed? If I have an authorized_key file, my logs show the server responding to we sent a publickey packet, wait for reply with a Server accepts key: ... If I move the authorized key file, my ssh log look like yours. Good luck, chris |
All times are GMT -5. The time now is 07:28 PM. |