You can enable HSS for servers only after installing the agent. This section describes how to install the agent on cloud platform servers.
When installing the agent in the GUI mode on the HSS console, ensure the agent has been installed on an ECS in the same VPC and is online. HSS will select this server as the executor to install the agent for other servers. For details about how to install the agent a server in a VPC for the first time, see Using Commands to Install the Agent on a Cloud Platform Linux Server.
HSS supports two installation modes. For details about their differences, see Table 1.
Agent Installation Mode | Description | Scenario |
|---|---|---|
GUI |
| To install the agent on a target server, ensure an agent is already online on a server in the same VPC as the target server. |
Commands or script |
|
|
in the upper left corner and select a region or project.
and choose Security > Host Security Service.Provide information based on whether the server can be logged in using the root account. The root account can be used to log in to the server. Provide the root user password and login port. HSS will use your root account to install the agent for the server. The root account cannot be used to log in to the server. Provide another username and password for login, and the root password for privilege escalation. HSS will use the provided account information to install the agent for the server.
Enter a username and its password.
You can view the Agent Status column to check the agent installation progress. If the Agent Status is Online, the agent has been installed.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.HSS will automatically match the servers based on IP addresses. If the matching fails, you can click View Failed Servers and check the failure cause.
You can view the Agent Status column to check the agent installation progress. If the Agent Status is Online, the agent has been installed.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.In the server list, only the servers bound to DEW are displayed.
If the Agent Status is Online, the agent has been installed.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.HSS will automatically parse the file and identify the servers you specified. If the parsing fails, you can click View Failed Servers and check the failure cause.
If the Agent Status is Online, the agent has been installed.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.
in the Install HSS Agent dialog box to copy the installation command.If the command output shown in Figure 1 is displayed, the agent has been installed.
Figure 1 Agent installed

If the Agent Status is Online, the agent has been installed.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.Perform the following operations on any server:
Ensure that the entered server verification information is consistent with the verification mode selected in 8. If the information shown in Figure 2 is displayed, the installation is complete. Figure 2 Agent installed If the Agent Status is Online, the agent has been installed.
to copy the installation command.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.If no dialog box is displayed, skip this step.
Figure 3 Changing the execution policy

Figure 4 Agent installed

If the Agent Status is Online, the agent has been installed.
in the upper left corner and select a region or project.
and choose Security > Host Security Service.If no dialog box is displayed, skip this step.
Figure 5 Changing the execution policy

If the BatchInstallAgent.log file exists, the agent has been installed.
If the Agent Status is Online, the agent has been installed.
Assume you have two accounts. Account A is your management account. It needs to manage the servers under account B, a member account. You can log in to account A, copy the agent installation command, and run it on a server under account B. After the agent is installed, you can choose Asset Management > Servers & Quota under account A to view the servers and enable HSS for them. In this way, servers can be protected across accounts.
The following procedure assumes you have account A (management account) and account B (its servers need to be managed by account A).
in the upper left corner and select a region or project.
and choose Security > Host Security Service.
in the Install HSS Agent dialog box to copy the installation command.If the command output shown in Figure 6 is displayed, the agent has been installed.
Figure 6 Agent installed

Assume you have two accounts. Account A is your management account. It needs to manage the servers under account B, a member account. You can log in to account A, copy the agent installation command, and run it on a server under account B. After the agent is installed, you can choose Asset Management > Servers & Quota under account A to view the servers and enable HSS for them. In this way, servers can be protected across accounts.
The following procedure assumes you have account A (management account) and account B (its servers need to be managed by account A).
in the upper left corner and select a region or project.
and choose Security > Host Security Service.Ensure that the entered server verification information is consistent with the verification mode selected in 8.
to copy the installation command.
to copy the installation command.If the information shown in Figure 7 is displayed, the installation is complete.
Figure 7 Agent installed

Assume you have two accounts. Account A is your management account. It needs to manage the servers under account B, a member account. You can log in to account A, copy the agent installation script, and run it on a server under account B. After the agent is installed, you can choose Asset Management > Servers & Quota under account A to view the servers and enable HSS for them. In this way, servers can be protected across accounts.
The following procedure assumes you have account A (management account) and account B (its servers need to be managed by account A).
in the upper left corner and select a region or project.
and choose Security > Host Security Service.If no dialog box is displayed, skip this step.
Figure 8 Changing the execution policy

Figure 9 Agent installed

Assume you have two accounts. Account A is your management account. It needs to manage the servers under account B, a member account. You can log in to account A, copy the agent installation script, and run it on a server under account B. After the agent is installed, you can choose Asset Management > Servers & Quota under account A to view the servers and enable HSS for them. In this way, servers can be protected across accounts.
The following procedure assumes you have account A (management account) and account B (its servers need to be managed by account A).
in the upper left corner and select a region or project.
and choose Security > Host Security Service.If no dialog box is displayed, skip this step.
Figure 10 Changing the execution policy

If the BatchInstallAgent.log file exists, the agent has been installed.
After the agent is installed on servers, enable protection.