I'm working on an rsync-based backup for a FreeNAS system.
Part of the backup process involves logging into the remote system that serves as the backup storage. Whenever I do that, I get the message
Could not create directory '/root/.ssh'.
I'm assuming this is due to the fact that /root is read-only, because when I try to create ~/.ssh manually, I receive:
mkdir: /root/.ssh: Read-only file system
Because of this, I have already moved the known_hosts file more appropriate for my backup process and am using -o UserKnownHostsFile to resolve any issues related to that.
However, ssh still tries to create the ~/.ssh folder when I invoke it. How can I get it to not try to create the folder?