Enabling SSH from outside home network

First find your public IP address:

curl https://ipinfo.io/ip

That way we know what to connect to.

At this point, SSH from phone on 4G with public IP address does not work, whereas it works over wifi using internal IP address.

Next we need to adjust the firewall, following the relevant part of this tutorial.

But that is still not enough:

To find the right port on the right device behind the Ziggo Connect Box, we need to allow port forwarding.

Out-of-the-box, Ziggo has disabled port forwarding. They need to push an update of the firmware in order to enable this. You can ask via twitter @ZiggoSupport, chat or phone 0900-1884. And they fix it the same day (in my case).

Once that is set-up (Check if port forwarding show under “Geavanceerd > Beveiliging” in het Connect Box menu!) follow this tutorial.

And…. BANG. I can get into my own linux box via 5G using (JuiceSSH on my phone).

By the way, after validating that it worked I have upped firewall protection so that I can only access the server from inside my home network.

Get ssh working

Installed JuiceSSH client on Samsung phone. Following the reco from here.

On Ubuntu box needed to install openssh-server:

sudo apt-get install openssh-server

And net-tools also did not come pre-installed:

sudo apt install net-tools

Once that is in place, check the IP address like so:

ifconfig

On the Windos laptop I already had Putty installed.

Just to be sure, I added some security measures, following this guide.

The secret key I generated on the client (windows laptop) using Puttygen as explained here https://www.u.tsukuba.ac.jp/en-puttygen-keypair/.

Next step will be to configure the firewall for external access.