Re: SSH command line syntax - port redirection

Rory Campbell-Lange <[email protected]> Tue, 11 Sep 2007 21:12:28 +0100
Newsgroups gmane.network.ssh.windows
Message-ID <[email protected]>
Hi Alex

On 11/09/07, Alex Morris ([email protected]) wrote:
> Some time ago I set up SSH on my dad's three computers so I could
> assist him remotely if needed. 

Apart from the Windows permissions errors you are getting (which others
may have comments on), the easiest way to manage the port forwarding
side is to do the following:

- setup target machines T1, T2 etc with static ip addresses to run VNC
  on standard ports
- setup one machine X to run an ssh server on say port 22
- redirect one port (say 2222) from the firewall/router FW to port 22 on X

From your remote machine you should be able to do the following:

    ssh -p2222 FW -L5900:T1:5900

to connect to other targets, simply substitute the ip address of T1 with
T2 or whatever.

Naturally X may be one of T1 or T2. Only in that case should you use
'localhost' or 127.0.0.1, because it would be forwarding your local port
back to itself.

Kind regards
Rory

-- 
Rory Campbell-Lange
Director
Campbell-Lange Workshop Ltd.
<[email protected]>
<www.campbell-lange.net>

--
List Info:      http://erdelynet.com/ssh-l/
List Archives:  http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:[email protected]