This project is read-only.

SSH Tunneling (Port Forwarding)

Jun 2, 2012 at 2:03 AM

First off, thanks a bunch Oleg for this awesome library, appreciate all the hard work.

Kind of at my wit's end, I really want/need to have this functionality work using

Usage Scenario:

LocalMachine - User's desktop
LocalServer - SSH Server
RemoteServer - Server that is only accessible from the LocalServer
LocalServer and Remote Server both need PrivateKey and Password Authentication 

Create a Tunnel from the LocalServer to the RemoteServer
Connect the SSHClient to the Tunnel
Create a ShellStream for readout 
Interactively execute commands on the RemoteServer

How do I incorporate SSHClient, SSHShellStream, and ForwardedPortLocal/Remote to achieve the above functionality?