I want to ssh into a server at my home which is behind NAT enabled router from my laptop when I'm away, say whlie using a public wifi.
Obviously, neither local nor remote port forwarding will work. But, I think it would work if I could somehow configure my router to relay packets coming from WAN and addressed to a specific port 22 to my server. But, I am not sure if that's possible.
Checking open ports on the public ip of my gateway, I can see only some known ports like 21, 22, 80 and non of others including 53, 110 etc.
Added: I forwarded the port 22 on my router to my server and tried to ssh into the server. I was prompted for the password but it replied, "Permission denied, please try again".
Another observation: router's WAN side IP doesn't match the public IP. I think that means my ISP doesn't provide me no public IP. What does it mean? Am I out of luck?
ssh
over that