exampleuser@ub2:~$ plink -C -N example.org -l exampleuser -pw p<ENTER PASSWORD> -R 15099:localhost:22
Once connected (above)
exampleuser@ub1:~$ ssh -l exampleuser -p 15099 localhost
Notes:
-C to Enable SSH compression -N to Not start a remote command or shell at all (SSH-2 only)
C:\programs\plink.exe -C -N exampleuser@example.org -pw <password> -R 5900:localhost:5900
On SSH Server telnet localhost 5900 should connect
http://www.vnc.com/pipermail/vnc-list/2004-January/042920.html
The syntax is “ssh -R port:host:hostport [EMAIL PROTECTED]” which will forward “port” listening on “hostname” to “host:hostport” via your local ssh-running machine.
I've just noticed that OpenSSH ~4.0 added an extra feature to -R, and it now binds to localhost by default (rather than 0.0.0.0 and letting the remote side restrict it further).
-R [bind_address:]port:host:hostport
So I think you'll want to use “ssh -R :3000:localhost:2000 [EMAIL PROTECTED]“