Create an SSH Tunnel on AWS Lightsail (Bitnami)

Some services on AWS Lightsail (like phpMyAdmin) are only accessible from localhost for security reasons. To access them safely, you can create an SSH tunnel.

Step 1: Open a terminal

On Windows, use PowerShell.
On macOS/Linux, use Terminal.

Step 2: Run the SSH tunnel command

ssh -i "C:\Users\User\Downloads\name_of_pem_file.pem" -N -L 8888:127.0.0.1:80 bitnami@44.196.11.84

Note: You’ll need to download your default SSH key (.pem file) from your Amazon Lightsail instance before running this command. Check out my tutorial on how to download your PEM file in Amazon Lightsail.

Step 3: Access the service

Leave the terminal open and visit:

http://localhost:8888/phpmyadmin

Step 4: Close the tunnel

When finished, simply close the terminal window.

Continue Exploring

Explore All Guides

Tools We Recommend

Recommended Tools

Shopify

Shopify is one of the most powerful all-in-one eCommerce platforms available today, designed to help anyone—from beginners to…

4.7
Updraft

UpdraftPlus Review – The Easiest Way to Back Up Your WordPress Website If you’re running a WordPress site…

4.7
Free / Pro from $70/yr (2 sites)
Zillion Designs

At manzari.com, we’ve been using Zillion Designs since 2015 as our go-to platform for logo design and brand…

4.5
From $199 (+ 20% processing fee)

Affiliate links — we may earn a commission at no extra cost to you.

About Manzari

Manzari is an independent publisher focused on WordPress, website technology, business software, and practical tech guides. Our goal is to help you choose better tools and make informed decisions with honest, transparent recommendations.

57+
In-depth WordPress guides
23+
Real tools tested & reviewed
21yr
Building with WordPress
100%
No paid placements, ever