Skip to main content

Posts

Showing posts with the label SSH Port Forwarding

Confused with SSH Port Forwarding?

This is one of the confusing topics for me but now I have completely understood. There are lots of blog posts on this with different perspectives and now I am also adding my perspective too. Hope this will help you to understand the concept. What is a port? Port is a virtual interface in the operating system that is used for sending and receiving TCP/UDP packets from the same system or another system. Applications interact by using a port number like SSH port 22. What is port forwarding? In simple language, port forwarding means redirecting the TCP packets from one IP address and port number to another IP address and port number. Example:  Let's assume you have a system in your house behind the router. No public IP address is assigned to your system directly. Now you want to access that system from another network by using SSH. How will you do that? Solution:  You do the port forwarding in your router, where you map the router port to your system port and IP address, in this scenar