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
.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…Host tunnel HostName casa.example.com User ubuntu IdentityFile ~/.ssh/cloud.pem BatchMode yes EscapeChar none RemoteForward *:9190 192.168.1.190:2190 RemoteForward *:9191 192.168.1.191:2191 RemoteForward *:9999 192.168.1.192:2222
@reboot autossh -fN tunnel