Copyright 2021 Simon Quantrill, All Rights Reserved

SSH tunnels

Tue 31 October 2006

Setting up SSH Tunnels

First make sure you a route set to bambam from the machine you wish to access usually something like Route add bambam rt1 The set up a putty ssh connection to Bambam (use different remote port. Port 9876 is only an example and can used by only 1 person on Bambam!) See below…. While logged into BAMBAM in the ssh session connect to the remote system using the command below:

Ssh –C –L :: -l ssh -C -L 55643:10.157.144.183:70 -l root 172.20.161.114

From your laptop you can now connect to the service using the localhost address connect web browser to

`http://127.0.0.1:70. login as: squantri squantri@10.224.177.36’s

password: Last login: Mon Oct 25 14:37:47 2004 from nlattp1ws135-10.att.cmg.nl **** BAMBAM **** Home directories

/home/ Your home directory should ONLY be used for small configuration files to setup your environment and for Netscape. Cleanup your temp files regularly! Product directories

—- /prod/ Home directories

/home/ Your home directory should ONLY be used for small configuration files to setup your environment and for Netscape. Cleanup your temp files regularly! Product directories `

—- /prod/


Last successful login for squantri: Mon Oct 25 14:42:12 CEST 2004 from nlattp1ws135-10.att.cmg.nl Last unsuccessful login for squantri: NEVER $ ssh -C -L 55643:10.157.144.183:70 -l root 172.20.161.114 root@172.20.161.114’s password: Last login: Mon Oct 25 15:28:19 MEST 2004 on console Compaq Tru64 UNIX V5.1A (Rev. 1885); Mon Oct 18 12:57:47 MEST 2004 The installation software has successfully installed your system. There are logfiles that contain a record of your installation. These are: /var/adm/smlogs/install.cdf - configuration description file /var/adm/smlogs/install.log - general log file /var/adm/smlogs/install.FS.log - file system creation logs /var/adm/smlogs/setld.log - log for the setld(8) utility /var/adm/smlogs/fverify.log - verification log file

#

This can also be used to access a service running on a different port for example, say you have connected to a system on 81.52.180.2 and the service is running on 10.157.144.183 then you need to use the same technique with putty connect using tunnels as before only instead of to bambam you goto the 81.52.180.2 address once there issue the

ssh command ssh -C -L 55643:10.157.144.183:70 -l root 81.52.180.2

this will allow you to use you local laptop to view upower and any other service running on the other port once the ports are set up.. setting up to port 20550 you can browse the mmh ssh -C -L 55643:10.157.144.183: 20550 -l root 81.52.180.2 127.0.0.1:70/mmh/info 127.0.0.1:70/mmh/messagebrowser

on the top

Comments