I've got a problem that I just cannot fix and am hoping someone here has a good solution. I have 3 Distribution points, 2 secondaries and one master. Trying to get them to sync through an Rsync script has been a nightmare though. I have tested SSH and verified that I can connect from the secondaries to the primary without requiring authentication.
I know that the script itself works, because if I run it manually via casper remote on one of the servers it works. But when I try to run it via policy I get a very non-descriptive error (at least to me):
"Script result: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [receiver=2.6.9]"
My script is:
sudo rsync -azvrpu -e ssh --delete ssh_user@secondary_distribution_server:"/Volumes/Striped Raid Set/Casper Distribution Point/" "/Shared Items/Casper Distribution Share/"
Seems pretty basic... but I have no idea what to do after weeks of troubleshooting. My goal here is to just have the syncing occur every night at 2 AM or so. I am not set on rsync particularly, and would be open to any free software that does this automatically.
