Back to Guides
Networking

How to Create an SSH Tunnel


How to Create an SSH Tunnel

What is an SSH Tunnel?

An SSH tunnel is a method of routing data and information securely over an encrypted SSH (Secure Shell) connection. Think of it like sending correspondence in a sealed envelope rather than a postcard. SSH tunneling enables secure remote system access through an encrypted data passageway that prevents interception.

Creating SSH Tunnel on Windows

Windows users should use PuTTY, a recognized SSH management tool.

Step 1: Open PuTTY and enter the IP or Host Name for the remote server.

PuTTY host configuration

Step 2: Expand the SSH tab and click on Tunnels. Source port can be any number from 1-65535 (unused). Enter the destination as:

127.0.0.1:7657

PuTTY tunnel configuration

Step 3: Click Open and enter username and password.

PuTTY login

Configuring SSH Tunnel on Linux

Step 1: Open the terminal.

Linux terminal

Step 2: Enter the following command into the terminal:

ssh -L 7657:127.0.0.1:7657 i2p@20.228.143.58

Parameter breakdown:

Creating SSH Tunnel on Mac

Step 1: Open the terminal.

Mac terminal

Step 2: Enter the following command into the terminal:

ssh -L 7657:127.0.0.1:7657 i2p@20.228.143.58

Parameter breakdown: