SSH - Tunnel (Port Forwarding)

Host Key Not Cached Putty

About

A Secure Shell (SSH) tunnel consists of an encrypted tunnel created through an SSH protocol connection. Users may set up SSH tunnels:

  • to transfer unencrypted traffic over a network through an encrypted channel.
  • to forward network traffic back or forth.

Syntax

An SSH tunnel is a tunnel with two endpoints. You initiate it from your computer and the network is rerouted:

  • from the server with the -R option. It tells the tunnel to answer on the remote side (the SSH server).
  • or from your computer with -L option, It tells the tunnel to answer on the local side of the tunnel (the host running your client).

Example

For example, Microsoft Windows machines can share files using the Server Message Block (SMB) protocol, a non-encrypted protocol. If one were to mount a Microsoft Windows file-system remotely through the Internet, someone snooping on the connection could see transferred files. To mount the Windows file-system securely, one can establish a SSH tunnel that routes all SMB traffic to the remote fileserver through an encrypted channel. Even though the SMB protocol itself contains no encryption, the encrypted SSH channel through which it travels offers security.

Type of Tunneling

Forward all server network traffic to client (R Option)

How to access a private service on a server with the help of SSH tunneling.

See Ssh - Tunnel - From server to local (Right Port Forwarding)

Reach a server through a SSH remote server (-L options)

When you need to make a SSH connection to connect to a server, you can create a left tunnel (a left port forwarding) to reach the server as of it was direct reachable.

See SSH - Left Tunnel (Left Port Forwarding) - Local to server

Documentation / Reference





Discover More
Drill Web Console
Apache Drill

Drill is a SQL Engine aimed to be able to query data file stored in a file system structure. At the core of is the 'Drillbit' service, which is responsible for accepting requests from the client, processing...
Map Of Internet 1973
Network - Tunnel

Tunnel joins two network with an SSL layer. tunnel allows you to easily share a application service on your local development machine without messing with DNS and firewall settings. Great for working...
Host Key Not Cached Putty
SSH - Configuration

There are two different sets of configuration files: those for client programs (that is, ssh, scp, and sftp), and those for the server (the sshd daemon). On the server but for the user....
Ssh Tunnel Forward Server Network Traffic To Localhost
Ssh - Tunnel - From server to local (Right Port Forwarding)

When the port is not open on a server, you can still reach it via SSH and a right tunnel (or Right port forwarding). When the tunnel is active, a request to a local port will be forwarded via the SSH...
Ports
What is a Port in computing?

This article is about the network port, what it is, how we use it and more
Host Key Not Cached Putty
What is sshd, the OpenSSH Server?

OpenSSH Server (or sshd) is the ssh server of OpenSSH This is mostly the one that will run on any Linux server so that you can connect remotely on port 22 with Putty or any SSH client See this...



Share this page:
Follow us:
Task Runner