811 words
4 minutes

Install Bitwarden on Ubuntu Server 22.04 LTS

This article is for those looking for a detailed and straightforward guide on installing 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.

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.

Go to the Bitwarden hosting setup page, enter your email address in the “Admin Email Address” field, and then click the “Submit” button to continue.

Install Bitwarden on Ubuntu Server 22.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 22.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 22.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 22.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 22.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 22.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 22.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.

Install Bitwarden on Ubuntu Server 22.04 LTS - Step 8

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

Install Bitwarden on Ubuntu Server 22.04 LTS - Step 9

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

Install Bitwarden on Ubuntu Server 22.04 LTS - Step 10

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

Install Bitwarden on Ubuntu Server 22.04 LTS - Step 11

Bitwarden installed successfully.

Now let’s start Bitwarden using the command:

Terminal window
sudo ./bitwarden.sh start

Install Bitwarden on Ubuntu Server 22.04 LTS - Step 12

Bitwarden launched successfully.

Install Bitwarden on Ubuntu Server 22.04 LTS - Step 13

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 22.04 LTS - Step 14


Social Channels#


Community of IT Experts#


Is this content AI-generated?

No. Every article on this blog is written by me personally, drawing on decades of hands-on IT experience and a genuine passion for technology.

I use AI tools exclusively to help polish grammar and ensure my technical guidance is as clear as possible. However, the core ideas, strategic insights, and step-by-step solutions are entirely my own, born from real-world work.

Because of this human-and-AI partnership, some detection tools might flag this content. You can be confident, though, that the expertise is authentic. My goal is to share road-tested knowledge you can trust.

Install Bitwarden on Ubuntu Server 22.04 LTS
https://www.heyvaldemar.com/install-bitwarden-on-ubuntu-server-22-04-lts/
Author
Vladimir Mikhalev
Published at
2023-01-22
License
CC BY-NC-SA 4.0