ssh.net forwardedPort stops after 'x' minutes #1291
Unanswered
digital-telemetry
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using ssh.net, with a forwardedPort. After 'x' minutes, the local forwardedPort listener goes away.
I am using keep-alive settings for the main openssh connection... that connection stays alive. But the forwardedPorts() collection is dead.
Any ideas? How to keep them alive?
I tried forwardPort.stop/start to resurrect. Doesn't work.
I tried querying the ssh.net client object for hints... all objects still "not nothing" and looking good.
But netstat proves the forwardedPort listener is gone.
My current solution is to pre-empt every connection attempt with the .NET equivalent of netstat... and drop/create the entire connection if required. Seems a bit heavy handed.
Beta Was this translation helpful? Give feedback.
All reactions