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

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.

SIGNAL & INTEL
- The Private Order: Stop being a grunt. Become an Architect. Join The Private Order.