Skip to main content

Ubuntu Installation

Installing Cloudflared on Ubuntu 22.04 (Jammy Jellyfish)**

Step 1: Add Cloudflare GPG Key

Open a terminal window and run the following command to create a directory for the Cloudflare GPG key:

sudo mkdir -p --mode=0755 /usr/share/keyrings

Next, use the curl command to download the Cloudflare GPG key and save it to the specified location:

curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null

Step 2: Add Repository to APT

To add the Cloudflare repository to your APT sources, execute the following command:

echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared jammy main' | sudo tee /etc/apt/sources.list.d/cloudflared.list

Step 3: Install Cloudflared

Update your package list and then install Cloudflared using the following commands:

sudo apt-get update
sudo apt-get install cloudflared

Cloudflared is now successfully installed on your Ubuntu 22.04 system.

Step 4: Verify Installation

To verify that Cloudflared is installed and operational, you can run the following command:

cloudflared -v

This command will display the version of Cloudflared installed on your system.