示例:
var client = require('scp2');
client.scp({
host: '175.84.24.92',
username: 'remoteusername',
password: 'remotepassword',
path: '/home/remoteusername/changeip.sh'
}, './', (err)=>{
console.log("err: " + err);
});
示例:
var client = require('scp2');
client.scp({
host: '175.84.24.92',
username: 'remoteusername',
password: 'remotepassword',
path: '/home/remoteusername/changeip.sh'
}, './', (err)=>{
console.log("err: " + err);
});