Managing a Host Connection
DLF can save the host connection information required for scripts and jobs. If the host connection information changes, you only need to edit it on the Host Connection Management page, but do not need to edit it in scripts or jobs one by one.
Creating a Host Connection
Ensure that the quantity of host connections is less than the maximum connection quota (20).
- In the navigation tree on the left of the data development page, choose .
- Click Create Host Connection. The Data Connection Management page of DGC Management Center is displayed. Click Create Data Connection and set Data Connection Type to Host Connection. In the displayed Create Data Connection dialog box, set the parameters listed in Table 1.
Table 1 Host connection parameters Parameter
Mandatory
Description
Host Connection Name
Yes
Name of the host connection. Must consist of 1 to 100 characters, contain only letters, digits, and underscores (_), and be unique.
Host IP Address
Yes
IP address of the host.
Connection Type
Yes
- Proxy connection
- Direct connection
Host ID
Yes
The ID of the host where the ECS is deployed.
Port
Yes
Port number of the host.
Username
Yes
Username of the host.
Login Mode
Yes
Selects the login mode of the host.
- Key pair
- Password
Key Pair
Yes
If Key Pair is the login mode of the host, the user needs to obtain the private key file, upload it to OBS, and select an OBS path. This parameter is available only when Login Mode is set to Key Pair.
NOTE:The uploaded private key file must be in PEM format, and the uploaded private key file and the public key configured on the host must be in the same key pair.
Key Pair Password
No
If no password is set for the key pair, you do not need to set this parameter.
Password
Yes
If the login mode of the host is to use a password, enter a login password.
CDM Cluster
Yes
Name of the Cloud Data Migration (CDM) cluster.
KMS Key
Yes
Key created on Key Management Service (KMS) and used for encrypting and decrypting user passwords and key pairs. You can select a created key from KMS.
Host Connection Description
No
Descriptive information about the host connection.
- Click Test to test connectivity to the host. If the test fails, the host connection cannot be created. In this case, contact technical support.
- Click OK.
Editing a Host Connection
After a host connection is created, you can modify host connection parameters as required.
- In the navigation tree on the left of the data development page, choose .
- In the Operation column of the host connection, click Edit. In the displayed dialog box, modify the host connection parameters. Refer to Table 1 for details.
For security purposes, you need to enter the password of the host again when modifying the host connection parameters.
- Click Test to test connectivity to the host. If the host can be connected, the host connection has been successfully created.
- Click OK.
Deleting a Host Connection
If you do not need to use a host connection any more, perform the following operations to delete the host connection:
- In the navigation tree on the left of the data development page, choose .
- In the Operation column of the host connection, click Delete. The Delete Host Connection dialog box is displayed.
- Click OK.
If you forcibly delete a host connection that is being associated with a script or job, ensure that services are not affected by going to the script or job development page and reassociating an available host connection with the script or job.
Last Article: Configuration and Management
Next Article: Managing a Resource
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.