Both sides previous revisionPrevious revision | |
tunneling_with_dreamcompute [2022/11/13 07:27] – jtkorb | tunneling_with_dreamcompute [2022/11/13 07:29] (current) – jtkorb |
---|
- At the DreamCompute [[https://iad2.dreamcompute.com/project/instances|Instances]] panel, launch a new instance (Boot Source Image Ubuntu 16.04, Flavor gp1.subsonic), selecting the newly created Security Group and Key Pair. | - At the DreamCompute [[https://iad2.dreamcompute.com/project/instances|Instances]] panel, launch a new instance (Boot Source Image Ubuntu 16.04, Flavor gp1.subsonic), selecting the newly created Security Group and Key Pair. |
- Create an A-type DNS record for the DreamCompute IP address with a name like ''casa.example.com''. (Alternative: Use duckdns.org to create a public domain name.) | - Create an A-type DNS record for the DreamCompute IP address with a name like ''casa.example.com''. (Alternative: Use duckdns.org to create a public domain name.) |
- Using ssh from home machine, connect to Dreamhost instance (e.g., ''ssh -i .ssh/cloud.pem ubuntu@casa.example.com''). Edit ''/etc/ssh/sshd_config'' and add this configuration information at the end (assuming default user is ''ubuntu'' and home server ssh port is 1234):<code> | - Using ssh from home machine, connect to Dreamhost instance (e.g., ''ssh -i .ssh/cloud.pem ubuntu@casa.example.com''). Edit ''/etc/ssh/sshd_config'' and add this configuration information at the end (assuming default user is ''ubuntu''):<code> |
ClientAliveInterval 30 | ClientAliveInterval 30 |
ClientAliveCountMax 3 | ClientAliveCountMax 3 |
</code>This step also ensures that the Dreamhost instance is added to the local ''~/.ssh/known_hosts'' file. | </code>This step also ensures that the Dreamhost instance is added to the local ''~/.ssh/known_hosts'' file. |
- While connected to the Dreamhost instance, do ''sudo apt-get'' and ''update'', ''upgrade'', ''dist-upgrade'', and ''autoremove''. And, reboot. | - While connected to the Dreamhost instance, do ''sudo apt-get'' and ''update'', ''upgrade'', ''dist-upgrade'', and ''autoremove''. And, reboot. |
- On home server, create a ''~/.ssh/config'' file with something like this...<code> | - On home server, create a ''~/.ssh/config'' file with something like this (assuming home server has local IP address 192.168.1.192 and is listening on ssh port 1234)...<code> |
Host tunnel | Host tunnel |
HostName casa.example.com | HostName casa.example.com |