Re: SSH command line syntax - port redirection

From: Rory Campbell-Lange <rory_at_**********.***>
Date: Tue Sep 11 2007 - 16:12:28 EDT

Hi Alex

On 11/09/07, Alex Morris (alexlists@gmail.com) 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.
<rory@campbell-lange.net>
<www.campbell-lange.net>
--
List Info:      http://erdelynet.com/ssh-l/
List Archives:  http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.com
Received on Tue Sep 11 16:12:50 2007

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2007 - 16:12:51 EDT