641 words
3 min read

Install Bitwarden on Ubuntu Server 20.04 LTS

By · Solutions Architect · Docker Captain · IBM Champion
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 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:

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.

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 Exchange Server 2013
    SysAdmin & IT Pro · Step-by-step guide to install Exchange Server 2013 on Windows Server 2012 R2, including prerequisites, AD preparation, and full installation walkthrough.
  2. 2
    Inside the Builders Era — How Developers Stay in Control of AI with GitKraken as the Core Tool
    Opinion & 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.
  3. 3
    Install Terraform on macOS
    DevOps & 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.
  4. 4
    Install Ubuntu Server 18.04 LTS
    SysAdmin & 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.
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