Summary: I'm looking to set-up a bash script to transfer a single file from a Synology DS to a dd-wrt router (Netgear WNR3500Lv1).
The problem: router only allows me to write in the /tmp
folder, which is erased after reboot. Instead of checking if the router rebooted, I would like to just push the file ("hosts") to it automatically every morning.
The solution that did not work: Similar question was asked before (Automate scp file transfer using a shell script), however none of the answers work for me. The shell in Synology DS does not have required commands: expect
, spawn
, interact
or sshpass
. It does have rsync
, but the router does not have it.
The solution with SSH keys does not work for me either, because I can't write anything permanently to the router -> so after reboot the setup is gone.
Question: is there a way to add the required commands to DS shell? Or perhaps a simpler way to accomplish this - so that it can happen automatically without prompting for password?