Orignal ssh2 supports sudo comands by allocating pseudo-tty session via passing {pty : true}.
The required password is then written to the stream returned via callback of exec function. e.g:
I suppose it's a bit of a crutch, so I am just reporting of a problem and giving you a simple solution. If ok, i can make a pull request with the described changes
Orignal ssh2 supports sudo comands by allocating pseudo-tty session via passing {pty : true}. The required password is then written to the stream returned via callback of exec function. e.g:
To be able to do so I offer to pipe outstream in gulp-ssh exec function (outStream.pipe(stream)).
The described pipe will allow to simply write smth like this
I suppose it's a bit of a crutch, so I am just reporting of a problem and giving you a simple solution. If ok, i can make a pull request with the described changes