node-rsync
node-rsync copied to clipboard
how to build a ‘-e’ option?
just like rsync -e 'ssh -p 1234'?
I've tried using:
.set('e','ssh -o StrictHostKeyChecking=no')
it does print the correct command, but keeps asking password when run in node.
whereas the printed command does work without prompting for any password when run from terminal...
EDIT:
My bad, my node process runs under root... I had misconfigured the authorized key on the remote server. Once corrected with a root generated ssh-keygen key, everything is fine and the
.set('e','ssh -o StrictHostKeyChecking=no')
works correctly