I have a TP-Link router and I have followed the appropriate steps to forward the port 22 to use an SSH connection on the remote machine. I forwarded the port 22 on the machine's LAN IP.
But when I try to connect to the remote machine over the internet using SSH the connection on port 22 times out. Also, the machine's global IP is reply when I ping the machine.
When I check the port 22 using canyouseeme.org it says the port is closed. What am I doing wrong ? Both the remote and the host machine are running Ubuntu 16.04 LTS
I contacted the ISP and they said that they do not block any ports. This is the NMAP output :
sudo nmap xxx.xxx.xxx.xxx -p 22 Starting Nmap 7.01 ( https://nmap.org ) at 2019-03-24 17:16 IST Nmap scan report for xxx.xxx.xxx.xxxreverse.spectranet.in (xxx.xxx.xxx.xxx) Host is up (0.0033s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds
Please ask for any further info you require.