node-rsync icon indicating copy to clipboard operation
node-rsync copied to clipboard

how to build a ‘-e’ option?

Open ouyangjia7 opened this issue 7 years ago • 1 comments

just like rsync -e 'ssh -p 1234'?

ouyangjia7 avatar Oct 10 '18 03:10 ouyangjia7

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

wiill avatar Oct 29 '19 01:10 wiill