Sorry for the vague topic/subject but that's the best way to describe my issue!
I have created a very simple SH script which is copied below.
Code:
#!/bin/sh
LOG_FILE=/myfolder/backup.log
rsync -avz /it_data backupuser@192.168.1.23:/backup/ >> $LOG_FILE 2>&1
If I log in as the local user "bob" and run it, it works 100% however, (I have shared SSH authorized_keys which means I don't need to enter a password for the SSH connection). The problem comes when I try to run the script via FreeNAS CRON.
Despite me telling it to use the user "bob", I get the following errors in the LOG_FILE ...
Quote:
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
|
Does anyone have any ideas or experience with this that could help me out?
Thank you in advance and for taking the time to read this post.