- SCP all files in remote directory to local directory
npm install scp-sync-to-local [--save]
- see USAGE as package
- see Usage as CLI
const scp = require("scp-sync-to-local");
var option = {
host: "hostname",
username: "yourUsername",
password: "yourPassword",
remotePath: "remotePath",
localPath: "localPath",
};
scp.download(option);