Skip to content

Add your first client machine

What you'll learn:

  • The two ways Repod can look at a machine, and which one to choose
  • How to give Repod's SSH key access to a machine
  • How to register the machine, test the connection and run the first scan
  • How to read the machine's packages and vulnerabilities

Time: ~20 minutes
Prerequisites: You are signed in as admin. You have a Linux machine that the Repod server can reach over SSH, and an account on it with sudo. If you want the machine to install packages from Repod, point it at your repository first (see Client setup). Inventory itself does not need this.


An inventory is Repod's view of what is installed on your machines. Once a machine is registered, Repod lists its packages, matches them against known vulnerabilities, and uses the result in the dashboards, the compliance views and the remote installation. Nothing is installed or changed on the machine by registering it.

Step 1 — Choose how Repod reaches the machine

Open Clients → Machines clientes. There are two modes, and you pick one per machine.

SSH Agent
Who starts the connection Repod connects to the machine The machine sends its data to Repod over HTTP
What the machine needs An SSH server and Repod's public key A small Python agent, run on a schedule
Network The server must reach the machine on its SSH port The machine must reach the server. No inbound SSH, which suits firewalled hosts
What you can do Everything: inventory, CVE scan, compliance, drift, remote install Inventory and CVE data, and package drift checks only

Choose SSH when the server can reach the machine: it gives you the full feature set. Choose Agent for machines you cannot reach from the server. The rest of this tutorial follows the SSH path, and Step 3 shows the Agent form.

Agents never receive commands

An agent only sends data to Repod. Repod cannot run anything on an agent machine, which is why remote installation and the compliance script need the SSH mode.


Step 2 — Give Repod's key access to the machine

In SSH mode Repod signs in with a key, not a password. The same public key is used for every machine. On the Machines clientes page, open the yellow banner Clé SSH repod with Afficher la procédure.

The banner showing Repod's public key and the command that installs it on a machine

Figure 1 — The SSH key banner. The key itself is blurred.

  1. Clé publique repod. The public key. Copier la clé copies it. A public key is meant to be shared: it only lets someone check Repod's identity, not impersonate it.
  2. Commande de déploiement. Run it from the Repod server or from an admin workstation, replacing <UTILISATEUR> and <IP_MACHINE>. It adds the key to ~/.ssh/authorized_keys of that user on the machine. It needs SSH access once, by password or by another key.
  3. Variante ssh-copy-id. If Repod runs in Docker, the banner also shows the ssh-copy-id form, run through the backend container.

Do this for the user Repod will connect as. Then check that it works from the Repod server before going further:

ssh <USER>@<MACHINE_IP> hostname

Choose the account carefully

Repod runs read commands on the machine (package lists, system information), and the compliance and install features run commands with sudo. Use a dedicated or existing administrative account that can use sudo, ideally without a password. If sudo needs a password, you can give it in the form (Step 3), where it is stored encrypted.


Step 3 — Register the machine

Click Ajouter un client.

The Add client form in SSH mode: connection mode, key reminder, identity, tags, SSH account and sudo

Figure 2 — The form in SSH mode.

  1. Mode de connexion. SSH or Agent.
  2. Key reminder. The same command as in Step 2, here prefilled with the user and the IP address as you type them.
  3. Adresse IP (required), Hostname and Label. The label is the friendly name shown in lists. The hostname is an optional free name.
  4. Étiquettes. Free tags, separated by commas, for example prod, web. They are how you group machines (Step 6) and how you target them for installs, maintenance windows and baselines.
  5. Utilisateur SSH (default root), Port SSH (default 22) and Type de paquets. Leave the type on Auto-détecté so Repod recognises deb, rpm or apk itself.
  6. Scan automatique activé. On by default: the machine is included in the scheduled scan (see Schedule the recurring scans and mirrors).
  7. Élévation de privilèges (sudo). The user to become, root by default, and a password if sudo asks for one. Leave the password empty for passwordless sudo. It is stored encrypted and never displayed again.

Fill in the form and click Ajouter.

For a machine that Repod cannot reach, choose Agent instead.

The Add client form in Agent mode: the SSH-specific fields are gone

Figure 3 — The form in Agent mode.

  1. Mode de connexion. Agent selected.
  2. Note. The agent is a Python script that sends the inventory to Repod over HTTP.
  3. IP / identifiant. Any identifier: in this mode the address is not used to connect.
  4. Étiquettes. Same as in SSH mode. The SSH account, the port and the sudo block disappear.

After creating an agent machine, use the Agent button of its row to download the script and its token, and run it on the machine.


Step 4 — Read the machine list

Scroll to the Machines clientes table.

The machines table: two machines, one reachable and one unreachable

Figure 4 — The machines table.

  1. Machine. The label, the IP address and the hostname, and under it the tags.
  2. Statut. Joignable (green) means the last attempt to reach the machine worked. Inaccessible (red) means it did not.
  3. Dernier scan. The result and the date of the last scan: OK or Erreur.
  4. CVE. The number of vulnerabilities found, one coloured figure per severity.
  5. Actions. From left to right: Tester la connexion SSH, Lancer un scan maintenant, Modifier and Supprimer.
  6. A machine in error. The first row is unreachable, so its scan failed. Fix the cause, usually the SSH key or the network, and run the connection test again.

Start with the connection test: click Tester la connexion SSH on your machine. A message such as SSH OK — hostname: ubuntu-jammy confirms that Repod can sign in with its key. The first time Repod connects, it records the machine's SSH host key. If that key changes later, Repod refuses to connect, which protects you from connecting to an impostor. Resetting the stored key after a legitimate reinstall is an administrator action.


Step 5 — Run the first scan

Click Lancer un scan maintenant.

The machine panel with a progress bar labelled CVE analysis and a Cancel button

Figure 5 — A scan in progress.

  1. Progress bar. First the package list is collected from the machine, then it is matched against the vulnerability database (Analyse CVE…). The number of packages is shown below.
  2. Annuler ce scan. Stops this scan. A bar at the bottom of the page also shows every running scan, with Tout arrêter.

On our test machine, with 637 packages, the scan took about a minute. The vulnerability database must be up to date for the result to mean something (see Keep your data fresh).


Step 6 — Read what Repod found

Click the machine's row. A panel opens on the right, with one tab per topic. Start with Paquets.

The Paquets tab: a filter, the package count and the list of installed packages with their versions

Figure 6 — The packages of the machine.

  1. Tabs. Paquets, Mises à jour, CVE, Conformité CIS, Dérive, Dépendances applicatives and Conteneurs.
  2. Filter and count. Filters the list by name and shows the total, here 637 packages. Each line gives the installed version and the architecture. The last column shows any security decision recorded for that package.

Now open CVE.

The CVE tab: severity filters and one card per vulnerability, with risk, exploitation and fix information

Figure 7 — The vulnerabilities of the machine.

  1. Filters. Toutes, Critical, High, Medium and Low, with the total on the right.
  2. A vulnerability card. For each one: the CVE identifier, the affected package and installed version, a description, and the following badges:
    • TruRisk. A score out of 100 that combines the severity (50 %), the probability of exploitation (30 %) and a bonus of 20 points if the flaw is known to be exploited. It ranks the flaws by real urgency, not only by severity.
    • KEV CISA. The flaw is on the CISA list of vulnerabilities exploited in the wild. Treat these first.
    • EPSS. The probability that the flaw will be exploited in the next 30 days.
    • Fix. The package version that corrects it, or Pas de fix when no fixed version exists yet.

The other tabs have their own guides: Conformité CIS is explained in Compliance scanning and Dérive in Drift baselines.


Step 7 — Group machines with tags

Above the table, the Groupes card lists your tags. A group is simply a tag: click it to filter the list and to act on every machine that carries it, such as starting a scan. Tags are also how you restrict installs to time windows (see Maintenance windows).


What's next