Monday, 30 August 2010

SSH Tunnel Example

Tunnel ssh from Local Machine to Remote Machine
and from Remote Machine to a Local Machine on
Remote Machines network.

Local to remote machine with 5900 tunnel
ssh -L 5900: -l username -p 22

Remote to machine on remote network with 5900 to 443 tunnel
sudo ssh -L 5900: -l username -p 22 remotemachine.local

This allowed one on the local machine to connect to a webserver using https on the remote machines network. The address on the local machine is https://localhost:5900 or and the connection is tunnelled through port 5900 but the actual server uses port 443.

No comments:

Post a Comment

CNC 6040 Spindle Control

Note: This is only an on - off control there is no speed control due to limitations on the CNC control box , you set the speed using the pot...