The following resokved the issue for me : Connect to the FreeNAS Server via SSH Without A Password.
That is exchange ssh key info with the freenas server.
The first step is to make sure that you have a user with shell access. To check goto Access->Users and either edit and existing user or create a new user and make sure the “Shell access” box is ticked. You also need to be sure that the SSH server is running. Check this on the Services->SSH page.
On the client machine open a terminal window and enter the command:
ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
When prompted for a password just hit ENTER twice:
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
This will generate what is known as a private key and a public key. The private key must be kept save and secure and you must never distribute it in any form whatsoever. However the public key is for public consumption and this is what we will copy over to the FreeNAS server.
Copy the public key to the FreeNAS server, user the following command:
scp ~/.ssh/id_rsa.pub apo@freenas03
Where apo is the username WITH shell access and freenas03 is the address of your FreeNAS machine.
When prompted for the password enter it:
apo@freenas03 ′s password:
id_rsa.pub 100% 402 0.4KB/s 00:00
Now login to your FreeNAS machine using SSH:
ssh -l apo@freenas03
And enter the password when prompted.
Now the public key of your client machine needs to be added to the list of authorized clients that connect. To do this run the following commands:
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
The first command will add the key to the list of authorized keys, the second will ensure that the permissions are set correct on that file and the third will delete the .pub file you copied over with the scp command as it is now longer needed.
This made my setup working again…