These steps set up remote access to a home network using an ssh tunnel to a DreamCompute host.
cloud.pem
), and put it in the home server ~/.ssh
directory.casa.example.com
. (Alternative: Use duckdns.org to create a public domain name.)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
):ClientAliveInterval 30 ClientAliveCountMax 3 Match User ubuntu GatewayPorts yes
This step also ensures that the Dreamhost instance is added to the local ~/.ssh/known_hosts
file.
sudo apt-get
and update
, upgrade
, dist-upgrade
, and autoremove
. And, reboot.~/.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)…Host tunnel HostName casa.example.com User ubuntu IdentityFile ~/.ssh/cloud.pem BatchMode yes EscapeChar none RemoteForward *:1234 192.168.1.192:1234
@reboot autossh -fN tunnel
ssh local@casa.example.com -p 1234