It's not a good idea to modify the default installation of FreeNAS. It's basically similar to an embedded system, and you get in trouble with updates/upgrades if you change something by writing to the default OS.
If you want to add a key to the known_hosts you've to simply copy & paste it to the User's settings in the WebGUI.