880 words
4 minutes

Install Bitwarden on Ubuntu Server 22.04 LTS

Cover image for 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


Patreon Exclusives#

🏆 Join my Patreon and dive deep into the world of Docker and DevOps with exclusive content tailored for IT enthusiasts and professionals. As your experienced guide, I offer a range of membership tiers designed to suit everyone from newbies to IT experts.


Tools I Personally Trust#

If you’re building things, breaking things, and trying to keep your digital life a little saner (like every good DevOps engineer), these are two tools that I trust and use daily:

🛸 Proton VPN - My shield on the internet. It keeps your Wi-Fi secure, hides your IP, and blocks those creepy trackers. Even if I’m hacking away on free café Wi-Fi, I know I’m safe.

🔑 Proton Pass - My password vault. Proper on-device encryption, 2FA codes, logins, secrets - all mine and only mine. No compromises.

These are partner links - you won’t pay a cent more, but you’ll be supporting DevOps Compass. Thanks a ton - it helps me keep this compass pointing the right way 💜


Gear & Books I Trust#

📕 Essential DevOps books
🖥️ Studio streaming & recording kit
📡 Streaming starter kit


Social Channels#

🎬 YouTube
🐦 X (Twitter)
🎨 Instagram
🐘 Mastodon
🧵 Threads
🎸 Facebook
🦋 Bluesky
🎥 TikTok
💻 LinkedIn
📣 daily.dev Squad
✈️ Telegram
🐈 GitHub


Community of IT Experts#

👾 Discord


Refill My Coffee Supplies#

💖 PayPal
🏆 Patreon
🥤 BuyMeaCoffee
🍪 Ko-fi
💎 GitHub
Telegram Boost

🌟 Bitcoin (BTC): bc1q2fq0k2lvdythdrj4ep20metjwnjuf7wccpckxc
🔹 Ethereum (ETH): 0x76C936F9366Fad39769CA5285b0Af1d975adacB8
🪙 Binance Coin (BNB): bnb1xnn6gg63lr2dgufngfr0lkq39kz8qltjt2v2g6
💠 Litecoin (LTC): LMGrhx8Jsx73h1pWY9FE8GB46nBytjvz8g


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