Ssh-tunnel

From PTAGISWiki

Jump to: navigation, search

The goal is to establish a web connection to a machine on the OGI campus, but is behind a firewall. The solution is in two stages:

create a tunnel from a CSE login server (turing) to tailbone's port 80.

create a tunnel from my home machine to turing's temporary port, thus connecting to tailbone's port 80.

1) login to turing

2) make the ssh tunnel:

turing.cse.ogi.edu% ssh -L 19001:localhost:80 -l root tailbone.cse.ogi.edu The authenticity of host 'tailbone.cse.ogi.edu (129.95.33.93)' can't be established. RSA key fingerprint is 15:25:9c:7b:f7:50:2a:1d:25:98:6c:96:3e:1a:9a:69. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'tailbone.cse.ogi.edu' (RSA) to the list of known hosts. root@tailbone.cse.ogi.edu's password: Last login: Wed Mar 31 12:33:21 2004 from 129.95.46.14

Oregon Graduate Institute -- Computer Science & Engineering

hostname: tailbone (tailbone.cse.ogi.edu) running linux

/root/.profile done Wed Mar 31 12:57:26 PST 2004 tailbone 49#

3) Test the tunnel with lynx http://localhost:19001 on turing

4) create the tunnel from weasel to turing: [rday@weasel rday]$ ssh -L 19001:localhost:19001 turing.cse.ogi.edu Enter passphrase for key '/home/rday/.ssh/id_dsa':

Oregon Graduate Institute -- Computer Science & Engineering

hostname: turing (turing.cse.ogi.edu) running linux

turing.cse.ogi.edu%

5) test the tunnel with lynx http://localhost:19001 on weasel

Personal tools