Foreword
- I do have an public IP, which I can verify on WhatIsMyIPAddress;
- When I try to connect to my computer from the outside via any of these
I see no output for a while and, eventually, I get this errorssh myusername@mypublicIP ssh -p 22 myusername@mypublicIP ssh -p 2222 myusername@mypublicIP ...
This is expected, I believe, as I've not configured the port forwarding yet (for any port).ssh: connect to host mypublicIP port 2222: Connection timed out
My attempt to configure port forwarding for SSH
So I proceed to try configuring it in my router's config page¹.
The router config page allows doing so via two interfaces: SIMPLIFIED PORT MAPPING and PORT MAPPING, but with neither of them do I have success:
- When I try via PORT MAPPING, as soon as I set the Internal port to 22, I see the following error, and the Add button becomes greyed out, so I can't finalize the setting
The selected port is not available, as it is currently used for interior of your FASTGate services.
- When I try via SIMPLIFIED PORT MAPPING, I successfully finalize the setting (I just have to select SSH on port 2222 in/out and my computer from a dropdown menu, and hit Add, but when I try
ssh
ing into my machine from the outside, I get
which tells me that the configuration I've done is having some effect, because I get a$ ssh -p 2222 myusername@mypublicIP ssh: connect to host mypublicIP port 2222: Connection refused
refused
error instead oftimed out
, but something is still not quite right.
Fwiw, my router is from my provider (I'm in Italy), FastWeb.
ssh -p 2222 myusername@mypublicIPaddress
from my own computer? If this is what you mean, I getConnection refused
regardless of whether I set up the simplified port forwarding or not.