I've been looking at a few different SSH APIs for an answer to this, hopefully someone here can help.
When doing a remote port forward with a zero port (eg ssh -R:0:localhost:8080 etc) on the command line (OpenSSH) I get the message "Allocated port n for remote forward to x" in the console. I've tried this with SSHTools, Ganymed, and my preference of JSch but I cannot see that message in any of the APIs, though I can confirm that the random port has been assigned on the remote server.
Any suggestions? It sounds odd, but I'd like the client to be able to find out the port assigned by the server (despite it being on the server).
Thanks in advance,
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.