This article is for those looking for a detailed and straightforward guide on installing Bitwarden on Ubuntu Server 20.04 LTS.

You can learn how to install Bitwarden on Ubuntu Server 22.04 LTS by reading “Install Bitwarden on Ubuntu Server 22.04 LTS”.

Bitwarden is a free open-source password manager with the ability to sync your account information across all devices.

In this guide, we will consider the case when you already have a server running Ubuntu Server 20.04 LTS.

You can read more about how to install Ubuntu Server 20.04 LTS in my guide “Install Ubuntu Server 20.04 LTS”.

Also, the server must have Docker Engine and Docker Compose installed.

You can learn how to install Docker Engine and Docker Compose on Ubuntu Server by reading “Install Docker Engine and Docker Compose on Ubuntu Server”.

In addition, OpenSSH must be installed on the server, and port 22 must be open in order to be able to connect to the server using the SSH protocol.

To install OpenSSH on a server, you can use the command:

sudo apt install openssh-server

If you plan to connect to the server using the Windows operating system, you can use PuTTY or MobaXterm.

This guide describes how to connect to a server using the iTerm2 terminal emulator installed on the macOS operating system.

Please note that you will need to open the following TCP ports to access your server:

  • TCP port 80 - to receive a free cryptographic certificate through the Let’s Encrypt CA.
  • TCP port 443 - to access the Bitwarden dashboard.

First, you need to request an installation ID and installation key to host Bitwarden on your server. You must use a unique ID and key for each Bitwarden installation.

Follow the link, enter your email address in the “Admin Email Address” field and click on the “Submit” button.

Install Bitwarden on Ubuntu Server 20.04 LTS

Save the resulting “Installation Id” and “Installation Key”. These values will be required during Bitwarden installation.

Install Bitwarden on Ubuntu Server 20.04 LTS

We connect to the server on which you plan to install Bitwarden.

Download the Bitwarden installation script using the command:

curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh

Install Bitwarden on Ubuntu Server 20.04 LTS

Let’s enable the execution of the file “bitwarden.sh” using the command:

chmod +x bitwarden.sh

Install Bitwarden on Ubuntu Server 20.04 LTS

Now let’s start the Bitwarden installation using the command:

sudo ./bitwarden.sh install

Install Bitwarden on Ubuntu Server 20.04 LTS

Now you need to specify the domain name that you plan to use to access the Bitwarden dashboard.

Specify the domain name to access Bitwarden and press the “Enter” button.

Install Bitwarden on Ubuntu Server 20.04 LTS

This tutorial walks you through obtaining a free cryptographic certificate through the Let’s Encrypt CA.

Press the “y” button, then “Enter”.

Install Bitwarden on Ubuntu Server 20.04 LTS

We indicate the email address to which Let’s Encrypt will send notifications about the expiration of the certificate and press the “Enter” button.

Specify the database name for the Bitwarden instance and press the “Enter” button.

Install Bitwarden on Ubuntu Server 20.04 LTS

Specify the “Installation Id” obtained earlier and press the “Enter” button.

Install Bitwarden on Ubuntu Server 20.04 LTS

We indicate the “Installation Key” obtained earlier and press the “Enter” button.

Install Bitwarden on Ubuntu Server 20.04 LTS

Bitwarden installed successfully.

Now let’s start Bitwarden using the command:

sudo ./bitwarden.sh start

Install Bitwarden on Ubuntu Server 20.04 LTS

Bitwarden launched successfully.

Install Bitwarden on Ubuntu Server 20.04 LTS

To access the Bitwarden control panel, you need to go from the workstation to the link https://bitwarden.heyvaldemar.net, where bitwarden.heyvaldemar.net is the name of my server. Accordingly, you need to specify the name of your server with Bitwarden installed.

Next, you need to register to start using the Bitwarden dashboard.

Install Bitwarden on Ubuntu Server 20.04 LTS


My Courses

🎓 Dive into my comprehensive IT courses designed for enthusiasts and professionals alike. Whether you’re looking to master Docker, conquer Kubernetes, or advance your DevOps skills, my courses provide a structured pathway to enhancing your technical prowess.

My Services

💼 Take a look at my service catalog and find out how we can make your technological life better. Whether it’s increasing the efficiency of your IT infrastructure, advancing your career, or expanding your technological horizons — I’m here to help you achieve your goals. From DevOps transformations to building gaming computers — let’s make your technology unparalleled!

Refill My Coffee Supplies

💖 PayPal
🏆 Patreon
💎 GitHub
🥤 BuyMeaCoffee
🍪 Ko-fi

Follow Me

🎬 YouTube
🐦 Twitter
🎨 Instagram
🐘 Mastodon
🧵 Threads
🎸 Facebook
🧊 Bluesky
🎥 TikTok
💻 LinkedIn
📣 daily.dev Squad
🧩 LeetCode
🐈 GitHub

Is this content AI-generated?

Nope! Each article is crafted by me, fueled by a deep passion for Docker and decades of IT expertise. While I employ AI to refine the grammar—ensuring the technical details are conveyed clearly—the insights, strategies, and guidance are purely my own. This approach may occasionally activate AI detectors, but you can be certain that the underlying knowledge and experiences are authentically mine.

Vladimir Mikhalev
I’m Vladimir Mikhalev, the Docker Captain, but my friends can call me Valdemar.

DevOps Community

hey 👋 If you have questions about installation or configuration, then ask me and members of our community: