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

Selective disable of echo in shell mode for password entry? #59

Open
daveobike opened this issue Oct 28, 2016 · 0 comments
Open

Selective disable of echo in shell mode for password entry? #59

daveobike opened this issue Oct 28, 2016 · 0 comments

Comments

@daveobike
Copy link

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.

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

1 participant