My root user was first missing the entire /.ssh directory, but was able to create that by adding a key from
/etc/ssh/ssh_host_rsa_key.pub via the GUI in the FreeNAS under users for root. Now the folder .ssh and authorized_keys folders are created, but, I still do not have a known_hosts folder.
The problem comes when running a shell script that uses rsync to backup files inside /mnt/ to an external box, on the same network. When ever I try to run the rsync command and I agree to the fingerpring, I get an error in adding the ip to known_hosts as the folder cannot be found.
If I try to create the folder, while logged in as root, this fails as it gives me a Read Only folder error.
How do I go about created all the folder under .ssh ?
/etc/ssh/ssh_host_rsa_key.pub via the GUI in the FreeNAS under users for root. Now the folder .ssh and authorized_keys folders are created, but, I still do not have a known_hosts folder.
The problem comes when running a shell script that uses rsync to backup files inside /mnt/ to an external box, on the same network. When ever I try to run the rsync command and I agree to the fingerpring, I get an error in adding the ip to known_hosts as the folder cannot be found.
If I try to create the folder, while logged in as root, this fails as it gives me a Read Only folder error.
How do I go about created all the folder under .ssh ?