639 words
3 min read

Install Bitwarden on Ubuntu Server 20.04 LTS

By · Solutions Architect · Docker Captain · IBM Champion
Cover image for the post 'Install Bitwarden on Ubuntu Server 20.04 LTS'

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.

TIP

Architecture 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.

IMPORTANT

Docker 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

IMPORTANT

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

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

Terminal window
sudo apt install openssh-server
NOTE

To connect to the server from a Windows system, you can use tools like PuTTY or MobaXterm.

NOTE

This guide walks you through connecting to a server with the iTerm2 terminal emulator on macOS.

CAUTION

You 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.

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 1

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

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 2

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

Download the Bitwarden installation script using the command:

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

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 3

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

Terminal window
chmod +x bitwarden.sh

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 4

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

Terminal window
sudo ./bitwarden.sh install

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 5

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 - Step 6

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 - Step 7

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 - Step 8

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

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 9

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

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 10

Bitwarden installed successfully.

Now let’s start Bitwarden using the command:

Terminal window
sudo ./bitwarden.sh start

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 11

Bitwarden launched successfully.

Install Bitwarden on Ubuntu Server 20.04 LTS - Step 12

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 - Step 13


Vladimir Mikhalev

Docker Captain  ·  IBM Champion  ·  AWS Community Builder

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Install ownCloud Using Docker Compose
    Self-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.
  2. 2
    Install Docmost Using Docker Compose
    Self-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.
  3. 3
    Install AFFiNE Using Docker Compose
    Self-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.
  4. 4
    Install Homebox Using Docker Compose
    Self-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

Random
  1. 1
    Install Joomla Using Docker Compose
    Self-Hosting · Learn how to install Joomla using Docker Compose with Traefik and Let's Encrypt. Step-by-step guide to self-host your CMS securely and efficiently.
  2. 2
    Install Quake 3 Server Using Docker Compose
    Self-Hosting · Deploy a Quake 3 server with Docker Compose on Ubuntu Server. Fast setup, WebGL-ready, browser access via QuakeJS, plus full configuration steps.
  3. 3
    Docker MCP — Turn GPT into a Real DevOps Assistant (Slack, GitHub, Stripe)
    AI & MLOps · Learn how to turn GPT into a real DevOps assistant using Docker MCP. Discover how AI agents can automate Slack, GitHub, Stripe, and more — securely and at scale.
  4. 4
    Install AWS CLI on macOS
    DevOps & Cloud · Step-by-step guide to install AWS CLI on macOS using the terminal. Learn how to download, install, and verify AWS CLI in minutes for seamless cloud management.
Install Bitwarden on Ubuntu Server 20.04 LTS
https://heyvaldemar.com/install-bitwarden-on-ubuntu-server-20-04-lts/
Author
Vladimir Mikhalev
Published
2021-03-01
License
CC BY-NC-SA 4.0