This article is written for those who were searching for a detailed and simple for the understanding guide on how to install Bitwarden on Ubuntu Server.
Bitwarden is a free open-source password manager with the ability to sync your account information across all devices.
Minimum system requirements for the Bitwarden server:
- Processor: x64, 1.4GHz
- RAM: 2GB
- Storage: 10GB
- Docker: Engine 1.8+ и Compose 1.17.1+
In this guide, we will consider the case when you already have a server with the Ubuntu Server 18.04 LTS operating system installed on it.
You can read more about how to install Ubuntu Server 18.04 LTS in my guide «Installing Ubuntu Server 18.04 LTS».
Also on the server must be installed Docker Engine – Community and Docker Compose.
You can learn how to install Docker Engine – Community on Ubuntu Server by reading «Installing Docker Engine – Community on Ubuntu Server».
In my guide «Installing Docker Compose on Ubuntu Server», you can learn how to install Docker Compose on Ubuntu Server.
In addition, 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 the server, you can use the command:
sudo apt-get install openssh-server
If you plan to connect to the server using the Windows operating system, you can use PuTTY, a freeware client for various remote access protocols, including SSH, Telnet, rlogin.
This guide covers connecting to a server using the iTerm2 terminal emulator installed on the macOS operating system.
First, you need to request the installation ID and installation key to host Bitwarden on your server. You must use a unique identifier and key for each installation of Bitwarden.
Please note that you will need to open the following TCP ports to access your server:
- 80 – to receive a free cryptographic certificate through the Let’s Encrypt certificate authority.
- 443 – to access the Bitwarden control panel.
Follow the link https://bitwarden.com/host/, specify the email address in the “Admin Email Address” field and click on the “Submit” button.
Save the received “Installation Id” and “Installation Key”. These values will be required during the installation of Bitwarden.
Connect to the server on which it is planned to install Bitwarden.
Download the Bitwarden installation script using the command:
sudo curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh
Allow the execution of the file “bitwarden.sh” using the command:
sudo chmod +x bitwarden.sh
Now start the installation of Bitwarden with the command:
sudo ./bitwarden.sh install
Now you need to specify the domain name that you plan to use to access the Bitwarden control panel.
Specify the domain name to access Bitwarden and press the “Enter” button.
This guide discusses how to obtain a free cryptographic certificate through the Let’s Encrypt Certificate Authority.
Press the “y” button, then “Enter”.
Specify the email address to which Let’s Encrypt will send notifications about the expiration of the certificate, and press the Enter button.
Specify the previously received “Installation Id” and press the “Enter” button.
Specify the previously received “Installation Key” and press the Enter button.
Bitwarden has been successfully installed.
Now run Bitwarden with the command:
sudo ./bitwarden.sh start
Bitwarden launched successfully.
To access the Bitwarden control panel, you must go from 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 or IP address of your server with Bitwarden installed.
Next, you will need to register to start using the Bitwarden control panel.