<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Elias Norberg</title>
    <description>The latest articles on DEV Community by Elias Norberg (@eliasnorberg_dev).</description>
    <link>https://dev.to/eliasnorberg_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4279471%2Fa91304a8-9f09-49de-84ec-150d296ed16d.png</url>
      <title>DEV Community: Elias Norberg</title>
      <link>https://dev.to/eliasnorberg_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eliasnorberg_dev"/>
    <language>en</language>
    <item>
      <title>Choosing a VPN or an SSH tunnel for remote database access</title>
      <dc:creator>Elias Norberg</dc:creator>
      <pubDate>Thu, 03 Dec 2026 02:25:08 +0000</pubDate>
      <link>https://dev.to/eliasnorberg_dev/choosing-a-vpn-or-an-ssh-tunnel-for-remote-database-access-o98</link>
      <guid>https://dev.to/eliasnorberg_dev/choosing-a-vpn-or-an-ssh-tunnel-for-remote-database-access-o98</guid>
      <description>&lt;p&gt;When a developer needs to reach a database that lives on a private network, two tools come up first: an SSH tunnel and a VPN. They solve overlapping problems, but they fit different situations.&lt;/p&gt;

&lt;h2&gt;
  
  
  SSH tunnel: one port, one purpose
&lt;/h2&gt;

&lt;p&gt;An SSH tunnel forwards a single local port to a remote host through an encrypted connection. It needs only an SSH server you already have, takes one command, and exposes nothing else on the network. This is a good fit for occasional access to one database or one admin panel.&lt;/p&gt;

&lt;h2&gt;
  
  
  VPN: the whole network
&lt;/h2&gt;

&lt;p&gt;A VPN places your machine inside the remote network, so every internal address becomes reachable. That helps when a team uses many internal services, or when tools cannot be pointed at a forwarded port. The trade-off is more setup, broader access to manage, and routing changes on the laptop.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple rule
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One service, short session: use an SSH tunnel.&lt;/li&gt;
&lt;li&gt;Many services, whole team, long sessions: use a VPN.&lt;/li&gt;
&lt;li&gt;Public Wi-Fi with no private network involved: a consumer VPN encrypts traffic, but it does not replace either option above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keep keys out of shared folders, rotate them when people leave, and close tunnels you are not using.&lt;/p&gt;

</description>
      <category>database</category>
      <category>infrastructure</category>
      <category>networking</category>
      <category>security</category>
    </item>
  </channel>
</rss>
