spmjs / node-scp2

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

privateKey Documentation #40

Open crh3675 opened 9 years ago

crh3675 commented 9 years ago

After some trials of not getting the privateKey to work, we finally found that we need to initialize this library using:

var scp =  require('scp2');

var client = new scp.Client({
    host : config.sshHost
    port  : config.sshPort,
    username  : config.sshUser,
    privateKey : config.sshPrivatekey
});

This was rather unclear in the documentation and is recommended to be updated.

lepture commented 9 years ago

@crh3675 thanks for your feedback. Could you update the documentation and send a pr here?