Install Bitwarden on Ubuntu Server 20.04 LTS
By Vladimir Mikhalev · Solutions Architect · Docker Captain · IBM Champion
This article is for those looking for a detailed and straightforward guide on installing Bitwarden on Ubuntu Server 20.04 LTS.
For step-by-step instructions on installing Bitwarden on Ubuntu Server 22.04 LTS, see 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.
TIPArchitecture Context
Choose self-hosted Bitwarden when your organization requires on-premises credential management with full vault data control. Bitwarden Cloud or 1Password provide managed alternatives with polished enterprise features and zero server maintenance. Self-hosting is justified when security policy mandates that credentials never leave your infrastructure or when you need custom backup and recovery procedures.
IMPORTANTDocker Engine and Docker Compose must be installed on the server.
For a step-by-step guide on installing Docker Engine on Ubuntu Server, see Install Docker Engine and Docker Compose on Ubuntu Server
IMPORTANTOpenSSH 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-serverNOTETo connect to the server from a Windows system, you can use tools like PuTTY or MobaXterm.
NOTEThis guide walks you through connecting to a server with the iTerm2 terminal emulator on macOS.
CAUTIONYou will need to open the following TCP ports for access to the services:
- 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.
Visit the Bitwarden hosting page, fill in your email address in the “Admin Email Address” field, and click the “Submit” button.

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

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
Let’s enable the execution of the file “bitwarden.sh” using the command:
chmod +x bitwarden.sh
Now let’s start the Bitwarden installation using the command:
sudo ./bitwarden.sh install
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.

This tutorial walks you through obtaining a free cryptographic certificate through the Let’s Encrypt CA.
Press the “y” button, then “Enter”.

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.

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

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

Bitwarden installed successfully.
Now let’s start Bitwarden using the command:
sudo ./bitwarden.sh start
Bitwarden launched successfully.

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.

Related Posts
- 1Install ownCloud Using Docker ComposeSelf-Hosting · Learn how to install ownCloud with Docker Compose on Ubuntu using Traefik and Let's Encrypt. Secure, scalable file storage and sharing for your server.
- 2Install Docmost Using Docker ComposeSelf-Hosting · Learn how to install Docmost using Docker Compose with Traefik and Let's Encrypt. Step-by-step guide for self-hosting a modern documentation platform.
- 3Install AFFiNE Using Docker ComposeSelf-Hosting · Step-by-step guide to install AFFiNE using Docker Compose with Traefik and Let's Encrypt. Build your open-source productivity platform in minutes.
- 4Install Homebox Using Docker ComposeSelf-Hosting · Step-by-step guide to install Homebox with Docker Compose and Traefik. Secure your home inventory system with HTTPS using Let's Encrypt.
Random Posts
- 1Install Exchange Server 2013SysAdmin & IT Pro · Step-by-step guide to install Exchange Server 2013 on Windows Server 2012 R2, including prerequisites, AD preparation, and full installation walkthrough.
- 2Inside the Builders Era — How Developers Stay in Control of AI with GitKraken as the Core ToolOpinion & Culture · How developers stay in control of AI in the Builders Era — using expert supervision, clean Git workflows, and GitKraken to keep speed, quality, and reliability.
- 3Install Terraform on macOSDevOps & Cloud · Learn how to install Terraform on macOS using Homebrew. Step-by-step guide includes setup, version check, and usage tips for managing infrastructure as code.
- 4Install Ubuntu Server 18.04 LTSSysAdmin & IT Pro · Step-by-step guide to install Ubuntu Server 18.04 LTS. Learn disk setup, OpenSSH installation, user configuration, and post-installation steps for server deployment.