DCAI — Derek Coleman & Associates Inc logoDCAI

Home / Support / Keycloak on Ubuntu 24.04 LTS

Keycloak on Ubuntu 24.04 LTS — Support & Quick Start

Keycloak 26 identity and access management (SSO, OIDC, SAML) on Ubuntu 24.04 LTS with a unique per-VM admin password.

At a glance

Application ports8080 (admin console + realms, plain HTTP). The admin console refuses sign-ins over plain HTTP from a public address ("HTTPS required"), so reach it through an SSH tunnel or your own HTTPS proxy
Open in browseradmin console: /admin/ on port 8080, through an SSH tunnel or your own HTTPS proxy (see First login)
Admin credential filesudo cat /opt/keycloak/admin-password
Sign in asdcaadmin-xxxxxxxx (KC_BOOTSTRAP_ADMIN_USERNAME in the credential file — not `admin`), Keycloak's temporary bootstrap admin
Service(s)keycloak
Configuration/etc/default/keycloak (bootstrap admin environment, root:keycloak 0640); /opt/keycloak/conf/keycloak.conf (http-enabled, http-port=8080, hostname-strict=false, db=dev-file)
Logsjournalctl -u keycloak -f
VersionKeycloak 26.8.0 (dev-file database, pre-built; plain HTTP on 8080) from image 2026.1007.1711; earlier images run older Keycloak 26 releases
PlatformUbuntu 24.04 LTS

Quick start

  1. Deploy from the Azure Marketplace (Get It Now → Create), choosing your SSH key at the Administration step.
  2. Allow inbound SSH (22) from your own IP in the Network Security Group (NSG): the first sign-in needs nothing else (see First login below). ufw on the VM already allows 8080, but the admin console refuses sign-ins over plain HTTP from a public address, so publish Keycloak to your users through HTTPS.
  3. Print the bootstrap credentials, open an SSH tunnel to port 8080 and sign in to the admin console through it (see First login below); images from 20 October 2026 onward ask you for a new password first. Then create a permanent admin and remove the temporary one.
  4. Create your first realm, add clients for your applications, and put Keycloak behind HTTPS before production use.

First login / credentials

This image generates its admin credential on the VM at first boot — nothing is pre-set. SSH into the VM with the username + key you chose at deploy, then print the generated credential:

ssh <your-username>@<VM-IP>
sudo cat /opt/keycloak/admin-password

Sign in as dcaadmin-xxxxxxxx (KC_BOOTSTRAP_ADMIN_USERNAME in the credential file — not `admin`), Keycloak's temporary bootstrap admin.

  1. Print the credential file: KC_BOOTSTRAP_ADMIN_USERNAME (dcaadmin-xxxxxxxx) and KC_BOOTSTRAP_ADMIN_PASSWORD. This account is Keycloak's temporary bootstrap admin.
  2. From your own computer, open an SSH tunnel to the VM and leave it running: `ssh -L 8080:127.0.0.1:8080 YOUR-USER@VM-IP` (the username you chose at deploy). On every image version Keycloak's master realm refuses sign-ins over plain HTTP from a public address ("HTTPS required"), so sign in through this tunnel, or over HTTPS from your own TLS proxy.
  3. In your browser, open the admin console through the tunnel (port 8080 on your own computer, path /admin/) and sign in with the bootstrap username and password.
  4. Images from 20 October 2026 onward (image version 2026.1020.2052 or later) then show Keycloak's "Update password" form before the console opens: choose a new password. Until you have, password-grant logins (`kcadm.sh config credentials`, a token request with curl) answer "Account is not fully set up". Older images open the console straight away.
  5. Create a permanent administrator in the master realm, sign in as it, then delete the temporary bootstrap admin and the credential file.

Sign in as the temporary bootstrap admin (KC_BOOTSTRAP_ADMIN_USERNAME, a per-VM name of the form dcaadmin-xxxxxxxx — not `admin`) with KC_BOOTSTRAP_ADMIN_PASSWORD, through an SSH tunnel or your own HTTPS proxy. Images from 20 October 2026 onward make you choose a new password at that first sign-in. Then create a permanent admin, delete the temporary one, and delete the file.

Troubleshooting

SymptomCheckFix
The sign-in page says "HTTPS required"You opened http://VM-IP:8080/ from outside the VM's networkExpected on every image: Keycloak's master realm, which the admin console uses, refuses sign-ins over plain HTTP from a public address. Use the SSH tunnel from First login, or put your own TLS proxy in front.
`kcadm.sh config credentials` or a token request answers "Account is not fully set up"Images from 20 October 2026 onward, before the bootstrap admin's first console sign-inKeycloak is holding the account at its Update password step. Sign in to the admin console once (First login), choose a new password, then use the new one.

Still stuck?

Email support@dcassociatesgroup.com (response within 1 business day) or send a message via the contact form. Include the offer name, VM size, region, and any log output — sudo journalctl -u <service> -n 100 usually tells the story.