v0.0.2
This commit is contained in:
parent
d086c1d493
commit
0f1d41a991
30 changed files with 1013 additions and 1536 deletions
4
ssh.js
4
ssh.js
|
@ -1,9 +1,5 @@
|
|||
const Client = require('ssh2-sftp-client')
|
||||
|
||||
|
||||
// Read the private key from the default location
|
||||
const privateKey = fs.readFileSync(path.resolve(process.env.HOME, '.ssh/id_rsa'))
|
||||
|
||||
async function uploadDirectory(serverConfig, localDirPath) {
|
||||
const sftp = new Client()
|
||||
await sftp.connect(serverConfig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue