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

Can't get pseudo-tty with SSH #54

Closed
publickeating opened this issue Dec 12, 2014 · 2 comments
Closed

Can't get pseudo-tty with SSH #54

publickeating opened this issue Dec 12, 2014 · 2 comments

Comments

@publickeating
Copy link

CentOS and RHEL reject sudo commands without tty, which I used to avoid like so,

remote.exec('sudo systemctl restart api', { exec: { pty: true } });

but this has stopped working.

If I change this line: https://github.com/pstadler/flightplan/blob/master/lib/transport/ssh.js#L55, like so,

self._connection.exec(command, { pty: true }, function(err, stream) {

then it works. Are you able to make it possible to pass ssh2 options in through the transport.sudo command? Thanks.

@pstadler
Copy link
Owner

I removed this feature with 0.5.0 but I can add it again to the exec/sudo commands.

@pstadler
Copy link
Owner

Should be there again with 0.5.5.

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

No branches or pull requests

2 participants