示例:
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);
});
2022-10-11 16:43:20
示例:
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);
});