---
title: Keystroke
slug: kronpam-installation-guide/keystroke
docTags: 
createdAt: 2025-04-16T12:13:41.833Z
---

1. For the ML Engine to collect keystroke data from Kron PAM and evaluate user behavior, the pam-keystroke service must be active. Use the following commands to start and verify its status:
   - **\[root\@ml-engine ML-Engine-Installer]#** systemctl start pam-keystroke
   - **\[root\@ml-engine ML-Engine-Installer]#** systemctl status pam-keystroke
2. Navigate to /pam/key-stroke/src/config/ folder.
3. Open the config.json file with a text editor and edit threshold values if necessary.
4. Save the config.json file and restart the keystroke service.
   - **\[root\@ml-engine ML-Engine-Installer]#** systemctl restart pam-keystroke

:::hint{type="info"}
The port used for Kron PAM to communicate with the ML Engine is defined in the configuration file. Make sure it aligns with your environment’s network settings.
:::

:::hint{type="info"}
The ML Engine operates over HTTPS. In Kron PAM, be sure to set the **keystroke.api.url&#x20;**&#x70;arameter as [https://ML-ENGINE-URL\:port/predict](#)
:::

