Using Gulp-SFTP with Pageant (on Windows)

I tried multiple ways, pointing directly to the keyfile, etc. - everything fails or was not very practical.
But it's hell simple. See: https://github.com/mscdex/ssh2#client-methods
 
You simply have to do it this way:
gulp.task('sftp-upload', function () {
    return gulp.src('css/*')
        .pipe(sftp({
            host: 'example.com',
            user: 'john.doe',
            agent: 'pageant',
            agentForward: true,
            remotePath: '/var/www/vhosts/xy/httpdocs/projectfolder'
        }));
});

So this should also work with other gulp ssh / sftp plugins based on the SSH2 client for node.js.

Weiterführende URL's 

  1. https://github.com/mscdex/ssh2#client-methods

Kommentare

Using Gulp-SFTP with Pageant (on Windows) | a:focus

Hi there, There's no doubt that your website may be having
web browser compatibility issues. When I take a look at
your web site in Safari, it looks fine however, if opening
in Internet Explorer, it's got some overlapping issues.
I simply wanted to provide you with a quick heads up!
Aside from that, excellent site!

my site :: <a href="http://levitravdnh.com/">levitra generic</a>

Neuen Kommentar schreiben

Plain text

  • Keine HTML-Tags erlaubt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • HTML - Zeilenumbrüche und Absätze werden automatisch erzeugt.
CAPTCHA
Diese Abfrage dient dem Schutz der Seite gegen automatisiertem Spam.