I would like to access my Ubuntu PC remotely via SSH. The SSH daemon is currently listening on port [x]. My router is a ASUS DSL-N12E.
I have created a rule for the firewall with the following parameters:
- Protocol: TCP
- Direction: Downstream
- Source Port: [x]
- Dest IP/Mask: 192.168.1.100/255.255.255.255
- Dest Port: [x]
and a NAT Virtual Server rule with the following parameters:
- Protocol: TCP
- Local IP: 192.168.1.100
- Local Port: [x]
- WAN IP: pppoe1
- WAN Port: [x]
I'm able to connect to the SSH server from the local network, using ssh -p [x] myuser@192.168.1.100, but I can't do it using ssh -p [x] myuser@mypublicip. I'm guessing there's something wrong with the router configuration although canyouseeme.org says that port [x] is open.
Any ideas about what I might be doing wrong?