|
| 1 | +--- |
| 2 | +title: "Linux Agent Deployment" |
| 3 | +description: "Linux Agent Deployment" |
| 4 | +sidebar_position: 30 |
| 5 | +--- |
| 6 | + |
| 7 | +# Linux Agent Deployment |
| 8 | + |
| 9 | +**Understanding Linux File Activity Monitoring** |
| 10 | + |
| 11 | +The Activity Monitor can be configured to monitor the following: |
| 12 | + |
| 13 | +- Ability to collect all or specific file activity for specific values or specific combinations of |
| 14 | + values |
| 15 | + |
| 16 | +It also provides the ability to feed activity data to other Netwrix products: |
| 17 | + |
| 18 | +- Netwrix Access Analyzer |
| 19 | +- Netwrix Threat Manager |
| 20 | + |
| 21 | +Prior to adding a Windows host to the Activity Monitor, the prerequisites for the target environment |
| 22 | +must be met. See the [Linux Agent Server Requirements](/docs/activitymonitor/9.0/requirements/linuxagent.md) topic |
| 23 | +for additional information. |
| 24 | + |
| 25 | +## Deploy Linux Agent |
| 26 | + |
| 27 | +Follow the steps to deploy the agent to the Linux host. |
| 28 | + |
| 29 | +**Step 1 –** On the Agents tab, click Add agent to open the Add New Agent(s) window. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +**Step 2 –** On the Install New Agent page, enter the server name for the Linux host. Click |
| 34 | +**Next**. |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +**Step 3 –** On the Agent Port page, specify the port to be used by the new agent. The default port |
| 39 | +is **4498**. Click **Next**. |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +**Step 4 –** On the Credentials To Connect To The Server(s) page, connect to the Linux Server using |
| 44 | +either a **User name** and **Password**, or a Public Key. |
| 45 | + |
| 46 | +The options for connecting with a Password are: |
| 47 | + |
| 48 | +- User name |
| 49 | +- Password |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +The options for connecting with a Public Key are: |
| 54 | + |
| 55 | +- User name |
| 56 | +- Private Key |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +To connect with a Client Certificate, select the **Client Certificate** (for already installed |
| 61 | +agents) option. Run the following commands on the Linux machine: |
| 62 | + |
| 63 | +``` |
| 64 | +cd /usr/bin/activity-monitor-agentd/ |
| 65 | +./activity-monitor-agentd create-client-certificate --name [name] |
| 66 | +``` |
| 67 | + |
| 68 | +The Client Certificate option adds an already installed agent to the console without using SSH. |
| 69 | + |
| 70 | +To connect with a public key, select the **Public Key** option. Copy the following command into a |
| 71 | +command prompt to generate ECDSA key for public key option: |
| 72 | + |
| 73 | +``` |
| 74 | +ssh-keygen -m PEM -t ecdsa |
| 75 | +``` |
| 76 | + |
| 77 | +Netwrix Activity Monitor requires to generate ECDSA Key with a blank passphrase |
| 78 | + |
| 79 | +``` |
| 80 | +cat ~/.ssh/id_ecdsa.pub >> ~/.ssh/authorized_keys |
| 81 | +``` |
| 82 | + |
| 83 | +:::note |
| 84 | +It is required to add public key to authorized keys for Activity Monitor. By default, a |
| 85 | +private key is generated at ~/.ssh/id_ecdsa location along with the public key (.pub file). A user |
| 86 | +can use a different file location. Copy the following command into a command prompt to generate a |
| 87 | +private key for Activity Monitorto use: |
| 88 | +::: |
| 89 | + |
| 90 | + |
| 91 | +``` |
| 92 | +cat ~/.ssh/id_ecdsa |
| 93 | +``` |
| 94 | + |
| 95 | +**Step 5 –** Click **Connect** to test the connection. If the connection is successful, click |
| 96 | +**Next**. If the connection is unsuccessful, see the status message that appears for information on |
| 97 | +the failed connection. |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | +**Step 6 –** On the Linux Agent Options page, select which user name to use to run the daemon. To |
| 102 | +use root, leave the **Service user name** field blank. Click **Test** to test the connection. |
| 103 | + |
| 104 | +**Step 7 –** Click **Finish**. The Add New Agent(s) window closes, and the activity agent is |
| 105 | +deployed to and installed on the target host. |
| 106 | + |
| 107 | +During the installation process, the status will be **Installing**. If there are any errors, |
| 108 | +Activity Monitor stops the installation and lists the errors in the **Agent messages** box. |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | +When the Linux agent installation is complete, the status changes to **Installed**. The Monitored |
| 113 | +Host is also configured, and the added Linux host is displayed in the monitored hosts table. See the |
| 114 | +[Monitored Hosts & Services Tab](/docs/activitymonitor/9.0/admin/monitoredhosts/overview.md) topic for additional information. |
| 115 | + |
| 116 | +Once a host has been added for monitoring, configure the desired outputs. See the |
| 117 | +[Output for Monitored Hosts](/docs/activitymonitor/9.0/admin/monitoredhosts/output/output.md) topic for additional information. |
| 118 | + |
| 119 | +:::info |
| 120 | +Activity Monitor Agent uses certificates to secure the connection between the Linux Agent and the Console / API Server. |
| 121 | +By default, the Agent uses an automatically generated self-signed certificate. The Console and the API Server do not enforce |
| 122 | +validity checks on these self-signed agent certificates. |
| 123 | + |
| 124 | +This self-signed certificate can be replaced with one issued by a Certification Authority. Once replaced, the Console and |
| 125 | +the API Server will ensure the validity of the agent’s certificates. |
| 126 | + |
| 127 | +See the [Certificate](/docs/activitymonitor/9.0/admin/agents/properties/certificate.md) topic for additional information. |
| 128 | +::: |
| 129 | + |
| 130 | +## Host Properties for Linux |
| 131 | + |
| 132 | +Configuration settings can be edited through the tabs in the host’s Properties window. The |
| 133 | +configurable host properties are: |
| 134 | + |
| 135 | +- [Inactivity Alerts Tab](/docs/activitymonitor/9.0/admin/monitoredhosts/properties/inactivityalerts.md) |
| 136 | + |
| 137 | +See the [Host Properties Window](/docs/activitymonitor/9.0/admin/monitoredhosts/properties/overview.md) topic for additional |
| 138 | +information. |
0 commit comments