Changes between Version 3 and Version 4 of User Guide/Remote Access/SSH


Ignore:
Timestamp:
Oct 18, 2019, 12:45:01 AM (5 years ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • User Guide/Remote Access/SSH

    v3 v4  
    248248
    249249[[BR]]
     250
     251=== SSH Tunneling ===
     252
     253A common need is to connect to some resource on the testbed, as if it were local. SSH provides this functionality.
     254
     255The simplest variant is via an openssh config file.
     256On Linux or Mac, via the terminal, make or edit a file at
     257{{{ ~/.ssh/config }}} by default.
     258
     259Make an entry like the following, replacing the specifics as needed
     260
     261{{{
     262Host console.sb1.cosmos-lab.org
     263  LocalForward 9001 srv1-lg1.sb1.cosmos-lab.org:80
     264}}}
     265
     266Now, when you ssh to console.sb1.cosmos-lab.org, traffic that you send to localhost port 9001, will be proxied and sent to srv1-lg1.sb1.cosmos-lab.org port 80. We commonly use this to access webUIs and similar things running on a node.
     267
     268Most SSH clients for other platforms have similar functionality. The important thing is to remember that the left side is your local port, and the right side is something that $HOST can talk to.
     269
     270To forward an additional port, or the same port on another device, add more lines.
     271{{{
     272LocalForward 9002 srv1-lg1.sb1.cosmos-lab.org:443
     273LocalForward 9003 srv1-lg1.sb1.cosmos-lab.org:80
     274LocalForward 9004 srv3-lg1.sb1.cosmos-lab.org:9090
     275}}}
     276
     277Just ensure that the ports on the left don't conflict.
     278
     279 
     280
     281
    250282=== If you deleted the "@internal1" key from your profile ===
    251283