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 08:25] – 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 Security Group ruleset. | + | - Create a new Security Group ruleset. |
- | Manage Rules | + | - Create a Key Pair, download the private |
- | Add Rule: Custom TCP Rule, Ingress, | + | - At the DreamCompute |
- | </ | + | - Create an A-type DNS record for the DreamCompute IP address with a name like '' |
- | - Create a key pair, download the public | + | - Using ssh from home machine, connect to Dreamhost instance |
- | - Create a DreamCompute | + | |
- | - Using ssh from home machine, connect to Dreamhost instance. | + | |
ClientAliveInterval 30 | ClientAliveInterval 30 | ||
ClientAliveCountMax 3 | ClientAliveCountMax 3 | ||
Line 16: | Line 14: | ||
Match User ubuntu | Match User ubuntu | ||
GatewayPorts yes | GatewayPorts yes | ||
- | </ | + | </ |
- | - Create an A-type DNS record for the DreamCompute IP address with a name like '' | + | - While connected to the Dreamhost instance, do '' |
- | - To create and test the tunnel use the command below on the home server, then try to connect to port 12345 on '' | + | - On home server, create a '' |
- | $ ssh -NR '*: | + | |
- | </ | + | |
- | - 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 -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.1509636349.txt.gz · Last modified: 2017/11/02 08:25 by jtkorb