How to create a SSL tunnel December 29, 2024
Antre du Tryphon

How to create a SSL tunnel

December 29, 2024 · Admin Unix Ubuntu Linux Debian SSH

This blog post assumes that ssl is already installed.

The basic command to create an SSL tunnel is:

ssh -L [local-ip-address:]local-port:dest-host:dest-port [user@]ssh-server

where:

  • local-ip-address to use. If omitted, localhost is used
  • local-port that the tunnel will listen to
  • dest-host is the name of the host to connect to from the ssh-server
  • dest-port is the dest-host port to connect to from the ssh-server
  • user is the username to use to connect to the ssh-server
  • ssh-server is the name of the ssh host

Copyright 2012–2026, Claude "Tryphon" Théroux