steelbrain / node-ssh

SSH2 with Promises
MIT License
948 stars 94 forks source link

Example of usage with PTY #405

Open jonnitto opened 3 years ago

jonnitto commented 3 years ago

Do you have an example how to use pty? I've tried it with ssh.execCommand(command, { execOptions: { pty: true } }) but I didn't get it running…

steelbrain commented 3 years ago

@jonnitto What's the use case? Whenever I personally need pty, I just requestShell and work with it directly since it's the "real" thing

jonnitto commented 2 years ago

I want to edit a file on a server with an editor like vim or nano.