Skip to content

Passing ssh2 options through sequest #21

Description

@lazywithclass

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions