statement:Modification on the basis of gulp-sftp
Upload files via SSH
Useful for uploading and deploying things via sftp. Right now this plugin just uploads everything. Caching and hash comparison are two TODO items.
$ npm install --save-dev gulp-sftp-hdh
var gulp = require('gulp');
var sftp = require('gulp-sftp');
gulp.task('default', function () {
return gulp.src('src/*')
.pipe(sftp({
host: 'website.com',
user: 'johndoe',
password: '1234',
"port": "60022",
"parentPath": "zt@Beta_172.xx.xx.xx:22",
"remotePath": "web/spadmin_static"
}));
});