Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

how to build a ‘-e’ option? #67

Open
ouyangjia7 opened this issue Oct 10, 2018 · 1 comment
Open

how to build a ‘-e’ option? #67

ouyangjia7 opened this issue Oct 10, 2018 · 1 comment

Comments

@ouyangjia7
Copy link

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

@wiill
Copy link

wiill commented Oct 29, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants