tunneling_with_dreamcompute
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tunneling_with_dreamcompute [2017/11/02 12:44] – jtkorb | tunneling_with_dreamcompute [2022/11/13 07:29] (current) – jtkorb | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| These steps set up remote access to a home network using an ssh tunnel to a DreamCompute host. | These steps set up remote access to a home network using an ssh tunnel to a DreamCompute host. | ||
| - | - At the DreamCompute [[https:// | + | - At the DreamCompute [[https:// |
| - | - Create a new Security Group ruleset. | + | - Create a new Security Group ruleset. |
| - | - Create a Key Pair, download the public | + | - Create a Key Pair, download the private |
| - At the DreamCompute [[https:// | - At the DreamCompute [[https:// | ||
| - | - Create an A-type DNS record for the DreamCompute IP address with a name like '' | + | - Create an A-type DNS record for the DreamCompute IP address with a name like '' |
| - | - Using ssh from home machine, connect to Dreamhost instance (e.g., '' | + | - Using ssh from home machine, connect to Dreamhost instance (e.g., '' |
| ClientAliveInterval 30 | ClientAliveInterval 30 | ||
| ClientAliveCountMax 3 | ClientAliveCountMax 3 | ||
| Line 14: | Line 14: | ||
| Match User ubuntu | Match User ubuntu | ||
| GatewayPorts yes | GatewayPorts yes | ||
| - | </ | + | </ |
| - | - To create and test the tunnel use the command below on the home server, then try to connect to port 12345 on '' | + | - While connected to the Dreamhost instance, do '' |
| - | $ ssh -NR '*: | + | - On home server, create a '' |
| - | </ | + | |
| - | - On home server, create a ~/ | + | |
| Host tunnel | Host tunnel | ||
| HostName casa.example.com | HostName casa.example.com | ||
| Line 25: | Line 23: | ||
| BatchMode yes | BatchMode yes | ||
| EscapeChar none | EscapeChar none | ||
| - | RemoteForward *:9190 192.168.1.190: | + | RemoteForward *:1234 192.168.1.192: |
| - | RemoteForward *:9191 192.168.1.191: | + | |
| - | RemoteForward *: | + | |
| </ | </ | ||
| - Add this line to crontab:< | - Add this line to crontab:< | ||
| @reboot autossh -fN tunnel | @reboot autossh -fN tunnel | ||
| + | </ | ||
| + | - From laptop (or other remote machine that has a private key paired with a home server public key in the authorized_keys file), use this instruction to remote ssh to account local:< | ||
| + | ssh local@casa.example.com -p 1234 | ||
| </ | </ | ||
tunneling_with_dreamcompute.1509651855.txt.gz · Last modified: 2017/11/02 12:44 by jtkorb