First of all thanks for this! It saved me lot of time.
My problem is that I need to run a command with sudo and I get
sudo: sorry, you must have a tty to run sudo
I've read the docs at https://github.com/mscdex/ssh2 and found out that there's a pty flag that could be passed through, I've added it to sequest options as in
var seq = sequest.connect('user@ip', {
pty: true,
privateKey: 'heh'
});
but with no success. I then looked at https://github.com/mikeal/sequest/blob/master/index.js#L33 and found out that you're allowing just a few options to pass through to ssh2.
Am I right that it's just a matter of sending you a PR allowing pty to be passed through?
First of all thanks for this! It saved me lot of time.
My problem is that I need to run a command with
sudoand I getI've read the docs at https://github.com/mscdex/ssh2 and found out that there's a
ptyflag that could be passed through, I've added it tosequestoptionsas inbut with no success. I then looked at https://github.com/mikeal/sequest/blob/master/index.js#L33 and found out that you're allowing just a few options to pass through to ssh2.
Am I right that it's just a matter of sending you a PR allowing
ptyto be passed through?