Ok, let's go,
generate your key pair with puttygen and default parameter (SSH2-RSA):
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
save your keys pair localy.
Go to the FreeNAS GUI user interface you want to authenticate with, in the ssh public key area paste the content of the public key generate with puttygen, removing the first 2 lines :
Code:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-2014xxxx"
and the last one:
Code:
---- END SSH2 PUBLIC KEY ----
The format should be:
Code:
ssh-rsa AAABBBBCCCDDD......
You can also copy directly the content from puttygen (public key for pasting area), where those lines aren't present.
Save your user set-up in the FreeNAS GUI.
As there potentially a bug with permissions (the initial topic of this thread), in the shell go to the home directory of the user you want to authenticate with and look at the .ssh folder permissions they should be rwx. If not, chmod 700 .ssh
Now go inside .ssh folder, you should find a authorized_key file with rw permissions. If not, chmod 600 authorized_keys.
Go to service ->ssh->start the service
For connecting, you have to configure your client to use a key base authentication, using Putty which I recommend, it consist in browsing to the
Private key.
Enjoy.