<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Networking on k4i's blog</title><link>https://k4i.top/tags/networking/</link><description>Recent content in Networking on k4i's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>sky_io@outlook.com (K4i)</managingEditor><webMaster>sky_io@outlook.com (K4i)</webMaster><copyright>All content is subject to the license of &lt;a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"&gt;CC BY-NC-SA 4.0&lt;/a&gt; .</copyright><lastBuildDate>Sun, 19 Apr 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://k4i.top/tags/networking/index.xml" rel="self" type="application/rss+xml"/><item><title>SSH Port Forwarding: Local and Remote Tunnels Explained</title><link>https://k4i.top/posts/ssh-port-forwarding/</link><pubDate>Sun, 19 Apr 2026 00:00:00 +0800</pubDate><author>sky_io@outlook.com (K4i)</author><atom:modified>Sun, 19 Apr 2026 00:46:31 +0800</atom:modified><guid>https://k4i.top/posts/ssh-port-forwarding/</guid><description>&lt;p&gt;SSH port forwarding (also called SSH tunneling) lets you securely route network traffic through an encrypted SSH connection. There are two directions: &lt;strong&gt;local forwarding&lt;/strong&gt; (&lt;code&gt;-L&lt;/code&gt;) to access remote services, and &lt;strong&gt;remote forwarding&lt;/strong&gt; (&lt;code&gt;-R&lt;/code&gt;) to expose local services to a remote machine.&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://k4i.top/images/posts/ssh-port-forwarding/ssh-cover.svg"
alt="Figure 1: SSH port forwarding connects two machines through an encrypted tunnel" width="90%"&gt;&lt;figcaption&gt;
&lt;p&gt;&lt;span class="figure-number"&gt;Figure 1: &lt;/span&gt;SSH port forwarding connects two machines through an encrypted tunnel&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id="remote-port-forwarding"&gt;Remote port forwarding (&lt;code&gt;-R&lt;/code&gt;)&lt;/h2&gt;
&lt;p&gt;Remote port forwarding forwards a port on the &lt;strong&gt;remote&lt;/strong&gt; machine to a specified address and port on the &lt;strong&gt;local&lt;/strong&gt; machine.&lt;/p&gt;</description><dc:creator>K4i</dc:creator><media:content url="https://k4i.top//images/posts/ssh-port-forwarding/ssh-cover.svg" medium="image"><media:title type="html">featured image</media:title></media:content><category>ssh</category><category>networking</category><category>linux</category><category>devops</category><category>notes</category></item></channel></rss>