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 [2022/11/13 05:36] – Fix public to private mistake jtkorb | tunneling_with_dreamcompute [2022/11/13 07:29] (current) – jtkorb | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| - 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 private key (e.g., '' | - Create a Key Pair, download the private key (e.g., '' | ||
| - 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 | ||
| Line 16: | Line 16: | ||
| </ | </ | ||
| - While connected to the Dreamhost instance, do '' | - While connected to the Dreamhost instance, do '' | ||
| - | - On home server, create a '' | + | - On home server, create a '' |
| Host tunnel | Host tunnel | ||
| HostName casa.example.com | HostName casa.example.com | ||
| Line 23: | 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.1668346603.txt.gz · Last modified: 2022/11/13 05:36 by jtkorb