Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse private key while generating public #50

Open
browerjosiahdev opened this issue Mar 26, 2016 · 1 comment
Open

Unable to parse private key while generating public #50

browerjosiahdev opened this issue Mar 26, 2016 · 1 comment

Comments

@browerjosiahdev
Copy link

I am seeing the below error when I try to connect using the default private key (~/.ssh/id_rsa) with a passphrase. Any help or guidance would be much appreciated.

var gulp = require('gulp');
var sftp = require('gulp-sftp');

gulp.task('upload', function () {
    return (
      gulp.src('./www/*')
        .pipe(sftp({
          host: <-- host here -->,
          remotePath: 'www',
          passphrase: <-- passphrase here -->,
          user: 'root'
        }))
    );
});
Error: Unable to parse private key while generating public key (expected sequence)
    at Connection.connect (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/ssh2/lib/Connection.js:524:15)
    at Transform.pool (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/index.js:192:11)
    at Transform._transform (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/index.js:210:14)
    at Transform._read (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Transform._write (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at Transform.Writable.write (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/gulp-sftp/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at write (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:623:24)
    at flow (/Users/josiahbrower/Documents/work/unibrowdev/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:632:7)
@victorjeman
Copy link

I also have this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants