israelroldan / grunt-ssh

SSH, SFTP tasks for Grunt.
https://npmjs.org/package/grunt-ssh
MIT License
244 stars 70 forks source link

Way to prompt for password? #134

Open iron-man opened 8 years ago

iron-man commented 8 years ago

I've looked through all the documentation that I can find, but I can't figure out how to make the commandline prompt for a password, instead of storing it in a file, or passing it as an argument to the commandline.
I looked at the underlying ssh2 repo, and it looks like they have a 'keyboard-interactive' support, which would allow for the prompting of password, like regular ssh does. How can I do that for grunt-ssh?

SteffenKoehler commented 8 years ago

@iron-man Am I right. You want to start your deployment with e.g. "grunt deploy" and then the commandline should show something like "Enter password:"? Then you type your password for the server and grunt-ssh will continue? May you have a look at grunt-prompt.