How To Create A SSH Tunnel With PuTTY
How To Create A SSH Tunnel With PuTTY ---> https://shurll.com/2tuYl0
How to create a SSH tunnel with PuTTY
SSH tunneling is a technique that allows you to access remote resources securely and privately over an encrypted SSH connection. SSH tunneling can be useful for various scenarios, such as bypassing firewalls, accessing local network resources from outside, or browsing the web anonymously.
In this article, we will show you how to create a SSH tunnel with PuTTY, a popular SSH client for Windows. PuTTY allows you to configure different types of SSH tunnels, such as local port forwarding, remote port forwarding, and dynamic port forwarding. We will explain each type and provide an example of how to use it.
Local port forwarding
Local port forwarding allows you to access a remote resource that is not exposed to the Internet by forwarding a local port on your computer to a port on the remote server. For example, let's say you want to access a database server at your office from your home. The database server is only accessible from the office network, but you have access to an SSH server at the office that allows connections from outside. You can create a SSH tunnel that forwards a local port on your computer (e.g., 8888) to the port of the database server on the office network (e.g., 5432). Then, you can access the database server by connecting to localhost:8888 on your computer.
To create a local port forwarding SSH tunnel with PuTTY, follow these steps:
Open PuTTY and enter the hostname or IP address and port number of the SSH server in the Session category.
In the left sidebar, navigate to Connection > SSH > Tunnels.
Select Local as the source port type.
Enter the local port number you want to use on your computer in the Source port field (e.g., 8888).
Enter the remote address and port number of the resource you want to access in the Destination field (e.g., 192.168.1.111:5432).
Click Add to add the tunnel configuration.
Click Open to connect to the SSH server and establish the tunnel.
You can now access the remote resource by connecting to localhost:local_port on your computer (e.g., localhost:8888). The traffic will be encrypted and tunneled over the SSH connection.[^1^]
Remote port forwarding
Remote port forwarding allows you to access a local resource from a remote server by forwarding a remote port on the SSH server to a port on your computer. For example, let's say you want to share a web server running on your computer with someone else over the Internet. The web server is only accessible from your local network, but you have access to an SSH server that allows connections from anywhere. You can create a SSH tunnel that forwards a remote port on the SSH server (e.g., 8080) to the port of your web server on your computer (e.g., 80). Then, anyone can access your web server by connecting to ssh_server:remote_port (e.g., ssh.example.com:8080).
To create a remote port forwarding SSH tunnel with PuTTY, follow these steps:
Open PuTTY and enter the hostname or IP address and port number of the SSH server in the Session category.
In the left sidebar, navigate to Connection > SSH > Tunnels.
Select Remote as the source port type.
Enter the remote port number you want to use on the SSH server in the Source port field (e.g., 8080).
Enter the local address and port number of the resource you want to share in the Destination field (e.g., 127.0.0.1:80).
Click Add to add the tunnel configuration.
Click Open to connect to the SSH server and establish the tunnel.
You can now share your local resource by giving others the address of ssh_server:remote_port (e.g., ssh.example.com:8080). The traffic will be encrypted and tunneled over the SSH connection.[^2^]
Dynamic port forwarding ec8f644aee