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/03/10 15:59] – 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. | ||
- | - Create a [[https://www.dreamhost.com/cloud/computing|DreamCompute]] instance (default parameters OK). | + | - At the DreamCompute |
- | - On home UNIX server, | + | - Create a new Security Group ruleset. |
- | - Edit ''/ | + | - Create |
+ | - At the DreamCompute [[https:// | ||
+ | - 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., '' | ||
ClientAliveInterval 30 | ClientAliveInterval 30 | ||
ClientAliveCountMax 3 | ClientAliveCountMax 3 | ||
Line 11: | Line 14: | ||
Match User ubuntu | Match User ubuntu | ||
GatewayPorts yes | GatewayPorts yes | ||
- | </ | + | </ |
- | - Edit the [[https://iad2.dreamcompute.com/project/ | + | - While connected to the Dreamhost instance, do '' |
- | Manage Rules | + | - On home server, create a '' |
- | Add Rule: Custom TCP Rule, Ingress, Open Port 12345 (for example), Remote CIDR = 0.0.0.0/0. | + | |
- | </ | + | |
- | - Create an A-type DNS record for the DreamCompute IP address with a name like '' | + | |
- | - To create | + | |
- | $ ssh -NR '*:12345:192.168.1.123: | + | |
- | </ | + | |
- | - On home server, create a ~/ | + | |
Host tunnel | Host tunnel | ||
HostName casa.example.com | HostName casa.example.com | ||
User ubuntu | User ubuntu | ||
- | IdentityFile ~/ | + | IdentityFile ~/ |
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 | + | @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 | ||
+ | </ | ||
+ | |||
+ | ===== References ===== | ||
+ | - DreamCompute [[https:// | ||
+ | - sshd_config [[http:// | ||
+ | - autossh [[http:// |
tunneling_with_dreamcompute.1489190383.txt.gz · Last modified: 2017/03/10 15:59 by jtkorb