Open TakamiChie opened 1 year ago
Hi there, this is not really ssh-tunnel related and more a question you should ask in the ssh2 project. However I like your approach and had a quick look, I will investigate a bit further, if this would be a nice way to test the project.
I advice you to have a look into the following post : https://github.com/mscdex/ssh2/issues/698
There is an working example for an SSH2 server with port forwarding support.
it would be nice to get your feedback once you are done emulating.
Thx for the issue.
I am currently using this module to create an application that connects to the dstHost shown below.
I wanted to write test code to simulate communication at the dstHost, so I wrote the following code:
However, when I execute the above code, the log "Finished" is not displayed and the error "Error: Timed out while waiting for handshake" occurs.
How can I emulate SSH communication without causing errors?
tunnel-ssh:4.0.5 node: v19.6.0