How to Perform Local SSH Tunneling

Hello Friends! Previously we have discussed on SSH tunnel and step to perform dynamic tunneling (port forwarding) which you can read from here. Today we will talk on same scenario and perform local tunneling (port forwarding).

Local tunneling is a process to access a specific SSH client machine for communication. It let you establish the connection on a specific machine which is not connected from internet.

The only difference between dynamic tunneling and local tunneling is that, dynamic tunneling requires socks proxy for tunneling all TCP traffic and local tunneling only required destination IP address.

Let’s Begin!!

Objective:  To establish SSH connection between remote PC and local system of different network.

Here I have set my own lab which consist three systems in following network:

SSH server(two Ethernet interface) IP for first network IP for another network.

Another image given below is describing network configuration for SSH client which is showing IP

Remote Pc ( is trying to connect to SSH server ( via port 22 and get successful login inside server.

Similarly now Remote PC ( trying to connect with Client PC ( via port 22, since they belongs to different network therefore he receive network error.

Step for SSH Local tunneling

  • Use putty to connect SSH server ( via port 22 and choose option SSH >Tunnel given in the left column of category.
  • Give new port forwarded as 7000 and connection type as local 
  • Destination address as for establishing connection with specific client and click on ADD at last.
  • Click on open when all things are set.

This will establish connection between remote pc and SSH server.

Open new window of putty and follow given below step:

  • Give hostname as localhost and port 7000 and connection type SSH.
  • Click on open to establish connection.

Awesome!! We have successfully access SSH client via port 7000 

Author: AArti Singh is a Researcher and Technical Writer at Hacking Articles an Information Security Consultant Social Media Lover and Gadgets. Contact here

Related Posts Plugin for WordPress, Blogger...

Leave a Reply