gulp-ssh
gulp-ssh copied to clipboard
Selective disable of echo in shell mode for password entry?
This may not be an issue as much as a feature request (or my misunderstanding of the shell command). When I launch a shell sequence, example:
gulp.task('remoteList', function () {
return gulpSSH
.shell([ 'sudo ls -a']).on('ssh2Data', function(chunk) {
process.stdout.write(chunk);
});
});
A prompt seems to appear for sudo password entry but it echoes my password in the terminal. Is there a way to disable the echo for password prompts? It looks like the underlying SSH2 supports options for that through pseudo tty but I don't see that is passed through from gulp-ssh. Or am I totally getting the shell setup wrong with code above? Thanks. This is my last missing piece to achieve near Fabric like experience with Gulp.