Install the agent on Linux
You need an enrollment token. The portal shows the commands below with your address and token filled in; copy them from there.
With the installer (recommended)
Run on the host:
curl -fsSL -A remediforge-installer https://YOUR-PORTAL/install.sh | sudo REMEDIFORGE_ENROLLMENT_TOKEN='ppe_…' sh -s -- --server https://YOUR-PORTALThe installer:
- downloads the agent for the host's architecture from your portal and checks that it is genuine, refusing to install otherwise;
- installs it to
/opt/remediforge/bin/remediforge-agent; - creates and starts the systemd service
remediforge-agent; - waits up to 60 seconds for the host to enroll, then deletes the token from the host.
When it succeeds it prints:
remediforge: enrolled; running as systemd service remediforge-agent
remediforge: this host appears in the portal within a minute.The host then appears under Devices.
With a package
For hosts where software must be installed as a package, the portal also
offers a .deb (x86-64) and an .rpm (x86-64):
# Debian or Ubuntu
curl -fsSLO -A remediforge-installer https://YOUR-PORTAL/downloads/remediforge-agent-amd64.deb
sudo dpkg -i remediforge-agent-amd64.deb
# RHEL family
curl -fsSLO -A remediforge-installer https://YOUR-PORTAL/downloads/remediforge-agent-x86_64.rpm
sudo rpm -i remediforge-agent-x86_64.rpmThen put your portal address and token in /etc/remediforge/agent.env:
REMEDIFORGE_SERVER_URL=https://YOUR-PORTAL
REMEDIFORGE_ENROLLMENT_TOKEN=ppe_…and start the service:
sudo systemctl enable --now remediforge-agentOnce the host has enrolled, empty the REMEDIFORGE_ENROLLMENT_TOKEN line.
Behind Cloudflare
If the command prints a page that starts with "Just a moment...", Cloudflare is stopping
the request before it reaches RemediForge. Ask whoever manages the Cloudflare zone to add
a rule (Security, WAF, Custom rules): User Agent contains remediforge, action
Skip. The installer's commands already send that name. Another way is to install
through a patch cache, which does not go through Cloudflare's check.
Checking the agent
systemctl status remediforge-agent # is it running?
journalctl -u remediforge-agent -f # follow its logFiles on the host:
| Path | What it is |
|---|---|
/opt/remediforge/bin/remediforge-agent |
The agent |
/etc/remediforge/agent.env |
Portal address (and the token until enrollment) |
/var/lib/remediforge/state.json |
The host's own credential, readable by root only |
If it does not enroll
| Message | What to do |
|---|---|
| "download failed: is … reachable from this host?" | The host cannot reach your portal on port 443. Check DNS, firewall and proxy |
| "the agent did not enroll within 60 seconds" | Check the log (journalctl -u remediforge-agent). Usually the token has expired, reached its use limit, or the host's address or name is outside the token's allowed networks or hostnames. Enrollment attempts in the portal shows the reason |
| "this host is not enrolled: set REMEDIFORGE_ENROLLMENT_TOKEN" | The token was not passed. Copy the full command from the portal |
| "run as root (sudo)" | Run the command with sudo |
If the token required approval, the host waits under Waiting for approval on the Enrollment page until an administrator approves it.
Running the installer again
Running the same command again on an enrolled host upgrades the agent and keeps the host's identity. No token is needed for that. See Upgrade agents.