Cockpit recommends installing the latest version from backports.
. /etc/os-release
sudo apt install -t ${VERSION_CODENAME}-backports cockpit
sudo dnf install cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
Open https://SERVER_IP:9090 in your browser and log in with a system user account.