Dear All,
I'm looking for a piece of code that could help me with the following problem. I have an SSH Terminal Interface that works nicely. I can SSH to a server directly using an TCP/IP socket. Now what I would like is to create an SSH server that accepts connections on any given port, and forwards this connection to a remote server, thus relaying all the commands sent on the local (receiving) port to the remote host.
PC -- (TCP e.g. 31543) --> SSH SERVER -- (TCP 22 ) ---> Remote Host (e.g. 212.213.214.1)
Now this sounds simple enough and I've found plenty of examples that came close, however none of which could help me out with the problem as described above. I've tried to set this up with SSH.NET, SharpSSH, ChilCat, Rebex and Bitvise but I couldn't get it to work. Obviousle there is something that I'm doing wrong.
Can anyone help me out with an example ( explained ) and which actually works.
Cheers,