Score:-1

SSH port forwarding not working remotely

ai flag

I am trying to build a server with my old PC just out of curiosity. I installed ubuntu 21.10. And connected it with Real VNC. Now I need to connect it with ssh. I can connect to the PC via the local network, but when I try to connect from an external network it did not connect.

After researching I got to know I have to enable port forwarding for my router. When I try to do that the router's admin panel's login details were changed by the provider and they forgot the details. And refusing to reconfigure by resetting the router.

Now I connected another old modem DSL-2750u and connected it as a wifi extender and changed its default IP address. And tried to port forward through it. And enabled port forwarding in ubuntu.

I added the PC mac address to be static by assigning it a default id in the DHCP reservation section. My PC local IP address is 192.168.1.8. But in the end, it is not connecting.

This is my router port forwarding table 1

This is firewall info in the system 2

This is ssh status info 3

Please help me with this issue where my doing is wrong, I am a newbie, trying to learn how servers work and configured

Tilman Schmidt avatar
bd flag
I'd recommend that you rethink your whole approach. Building a server from an old PC is definitely not advisable for a business environment.
jp flag
Port forwarding would only work on the router connected to the ISP directly.
Sasidhar Mankala avatar
ai flag
@TilmanSchmidt thank you for your advice. I am not trying to deploy any business environments. Just trying to learn how this works
Sasidhar Mankala avatar
ai flag
@AlexD Ohh. Thank you for your info. .
Tilman Schmidt avatar
bd flag
In that case you have come to the wrong place. StackExchange is specifically for questions regarding management of IT systems in a business environment.
Score:0
dz flag

If ssh is working then you should rewrite some options on router. First up is local ip address - you should change it to all (if you have that option). Also change wan port to all. If that still doesn't work check if your machine is blocking client ip address. I also recommend visiting Port forwarding Tester to check if the port on your router is actually opened.

Sasidhar Mankala avatar
ai flag
Thanks for the answer. As you said I looked for changing IP to all, there is no option for that. And tried to ping from the client PC with the public IP of the server, if the server is blocking it, the client received packets from the server. And finally checked the website you mentioned, it returned that port 22 is closed
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.