cronvel / terminal-kit

Terminal utilities for node.js
MIT License
3.08k stars 198 forks source link

terminal-kit is not working with SSH connection #212

Closed hemendpatel closed 2 years ago

hemendpatel commented 2 years ago

I'm trying to push terminal out put over SSH2 to putty.

const tkit = require('terminal-kit'); ssh2 = require('ssh2'), new ssh2.Server({hostKeys: [hostKeys]}, (client) => { var buffer, term; term = tkit.createTerminal({ stdin: client, stdout: client }); term.clear(); term.moveTo(1, 1, "ICU"); term.width =10 term.height= 20; buffer = tkit.ScreenBufferHD.create({ dst: term }); buffer.put({ x: 2, y: 2, }, "Hello"); buffer.draw(); }).listen("5151", '0.0.0.0', function() { console.log('Listening on port 5151'); });

Error: I'm getting below error: image

does anyone try to use ssh2 connection using terminal-kit?

hemendpatel commented 2 years ago

Found the solution!

ROTGP commented 1 year ago

Found the solution!

It would be helpful if instead of telling the world that you found a solution, that you instead share the solution.

HemTech commented 1 year ago

@ROTGP Please find Below SSH implementation image