2
1
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.
What does the router report as the WAN address? The first two octets should be fine, no need to reveal your full IP. Is that address the same as was reported by canyouseeme.org? – Tim_Stewart – 2019-03-24T16:15:57.667
@Tim_Stewart the default gateway is 10.200.xxx.xxx and the IP Address is 10.200.xxx.xxx. This is nowhere close to the IP address in canyouseeme.org which is 125.63.xxx.xxx – Tanmay Bhatnagar – 2019-03-24T18:40:09.530