Click here to Skip to main content
16,017,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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,
Posted

1 solution

I have user SharpSSH to connect to the Linux terminal, it works Good. and SSH.Net also is the best one, I don't know about others

Thanks
--RA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900