Best Software for 2025 is now live!

Kindly help me in understanding SSH port Forwarding which is in Putty as Tunnel

I would request to help me in guiding how to configure Port Forwarding in Putty i.e. Local / Remote / Dynamic All the options which are connected with Tunneling kindly help me with example to configure. I tried several ways but could not resolve it.
1 comment
Looks like you’re not logged in.
Users need to be logged in to answer questions
Log In
Taher A.
TA
IT Administrator
0
Certainly! I'll guide you through the process of configuring each type of port forwarding in PuTTY with examples for better understanding. Let's start with local port forwarding: Local Port Forwarding: Open PuTTY and enter the server's hostname or IP address in the "Host Name" field. Expand the "SSH" category in the left-hand panel and click on "Tunnels." In the "Source port" field, enter the port number on your local machine from which you want to forward the connection (e.g., 8080). In the "Destination" field, enter the destination address and port on the remote server where you want the connection to be forwarded (e.g., localhost:80). Click the "Add" button to add the forwarding rule. Repeat steps 3-5 if you need to configure additional local port forwarding rules. Click the "Open" button to initiate the SSH connection. For example, let's say you want to access a web server running on the remote server's port 80 through your local machine's port 8080. In that case, you would configure the local port forwarding as follows: Source port: 8080 Destination: localhost:80 After establishing the SSH connection, you can access the web server by opening a web browser on your local machine and navigating to http://localhost:8080. Remote Port Forwarding: Open PuTTY and enter the server's hostname or IP address in the "Host Name" field. Expand the "SSH" category in the left-hand panel and click on "Tunnels." In the "Source port" field, enter the port number on the remote server from which you want to forward the connection (e.g., 3306). In the "Destination" field, enter the destination address and port on your local machine where you want the connection to be forwarded (e.g., localhost:3306). Click the "Add" button to add the forwarding rule. Repeat steps 3-5 if you need to configure additional remote port forwarding rules. Click the "Open" button to initiate the SSH connection. For example, let's say you want to access a MySQL database running on your local machine's port 3306 through the remote server's port 3306. In that case, you would configure the remote port forwarding as follows: Source port: 3306 Destination: localhost:3306 After establishing the SSH connection, you can access the MySQL database on your local machine by connecting to the remote server's address and port 3306. Dynamic Port Forwarding: Open PuTTY and enter the server's hostname or IP address in the "Host Name" field. Expand the "SSH" category in the left-hand panel and click on "Tunnels." Select the "Dynamic" radio button. In the "Source port" field, enter the port number on your local machine to be used as the dynamic SOCKS proxy (e.g., 1080). Click the "Add" button to add the forwarding rule. Click the "Open" button to initiate the SSH connection. After establishing the SSH connection with dynamic port forwarding, you can configure your applications (e.g., web browser) to use the SOCKS proxy on your local machine's port 1080. This will allow the traffic to be securely tunneled through the remote server. I hope this step-by-step guide helps you configure port forwarding in PuTTY for local, remote, and dynamic scenarios. Let me know if you have any further questions!
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply