spmjs / node-scp2

[MAINTAINER WANTED] A pure javascript scp program based on ssh2.
385 stars 96 forks source link

Uploading directories via Low Level API, or using privatekey in High Level API #15

Closed Gooseus closed 9 years ago

Gooseus commented 9 years ago

What I'm trying to do is to SCP a directory using a privatekey.

I can configure the low-level Client with the key, but then I can't upload directories.

If I try to use the high-level scp method which states directory support, it doesn't seem to let me add a privatekey anywhere.

Gooseus commented 9 years ago

apparently you can pass the privateKey and passphrase parameters in the destination object (2nd parameter) of the SCP method. I assume you could do the same for source object when copying from remote as well