node-sftp-deploy
node-sftp-deploy copied to clipboard
Upload and deploy files from SFTP within username & password.
Ive used the following script: var sftp = require('node-sftp-deploy'); let config = { "host": "example.com", "port": "22", "user": "example", "pass": "test", "remotePath": "/var/www/html/test/", "sourcePath": "./dist/" } //Support Promise sftp(config).then(function(){ //Success...
Authenticating with password. sftp2 { Error: read ECONNRESET at exports._errnoException (util.js:1020:11) at TCP.onread (net.js:568:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read', level: 'client-socket' } sftp2 SFTP abrupt closure getting this error