Practical Security: Creating SSH Tunnels

Written By
Web Webster
Web Webster
Jan 20, 2009

“There are two primary reasons to use ssh for tunneling. Before
I give those reasons, I’ll describe what tunneling is.

“Tunneling with ssh is the process of wrapping some network
communication with the encrypted ssh protocol. Tunneling involves
an ssh client connecting to an ssh server, just as in “regular
cases.” But when the ssh client connects to the server, the client
specifies the source and the destination for the tunnel.

“The source is simply a bound network port that other processes
can connect to. This port must either be managed by the ssh client
or the ssh server.

“The destination is another bound network port; but this time,
it’s some other network server that the other end of the ssh tunnel
can communicate with. If this seems a bit unclear, don’t worry;
I’ll get into more detail shortly with an example. For now, you can
just think of ssh tunneling as secure port forwarding.”

Advertisement


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.