Closed ernie58 closed 6 years ago
It looks like perhaps the shell isn't responding to or honoring the exit command.
Could you add onto the chain of your shell command:
.on('ssh2Data', (data) => console.dir(data.toString()))
That should allow you to see how the server is responding to each command.
@mojavelinux works like a charm! Server expected a y/n input. Thx!
Nice!
I added a warning to the README about this. See #85.
Hi,
I'm trying to execute some bash scripts on a remote after uploading a tar-file. The upload works. The shell commands are printed to my terminal but nothing happens. There are no errors in the debug.log file. The script doesn't exit, and I don't see any errors.
This is my code. Am I doing something wrong here?
This is the output for the commands: