Set up Key pairs but have to enter password, Freenas 8
Ok so I've watched episodes 1108 through 1120 on Hak5 umpteen times. I took notes and got the keys generated and where they need to be.
I have pasted the public key in the public key box for my user in freenas 8. it starts with "ssh-rsa " and ends with my user@ my clientmachines name. Is this right? On the server in .ssh I have the public key in the authorized_keys. It also begins and ends as stated above. again is this right? On my client machine in .ssh I have my private key the .pub key and Known_hosts. Known_hosts has quite the string of data in one line. I believe it is a hashed version of User@host.domain then it says= ssh-rsa and the string of data/the key and nothing after that. When I tried to ssh into the nas I got the fingerprint and checked it as good and it was permantly added to the known_hosts file. Now when I try to ssh in I am always asked for my password. What did I do Wrong? Thanks to all who look and even more so to those who help. +1 |
Code:
###### DIRECTIONS FOR CREATING RSA KEY################ |
lleb,
Thank you so much for your input. You just verified I did everything correctly. However, I am still asked for a password every time I ssh in. My nas Is running on Freenas 8 and I think There is a setting I need in my user account. The forums over there are not as quick to respond as here. I will double check my user settings. Also I'm going to try to set this up on another machine running xbmcbuntu just to see if there's anything different. Thanks again. +1 Just set up the key pairs on y htpc and the only thing that was different was when I logged out and back in I had to give the password to unlock the key. Beautiful lleb. Thank you. For some reason that doesn’t happen on my nas. I'll delete everything and try from scratch. |
Make sure the authorized_keys file has the proper permissions i.e. 600
|
|
All times are GMT -5. The time now is 04:02 PM. |