Target Server Management
If you need to configure the target server, perform the operations in this section.
Prerequisites
You have logged in to the Kunpeng DevKit.
Procedure
- In the upper right corner of the page, choose
> General Settings > Target Server Management.Click Add Target Server. The Add Target Server dialog box is displayed, as shown in Figure 1, Figure 2, and Figure 3.
- Set target server parameters based on Table 1. Then click OK.
Table 1 Parameters of the target server Parameter
Description
IP Address
IP address of the target server to be connected.
(Optional) Server Alias
Set the server alias. The default value is the IP address.
NOTE:The server alias can contain 1 to 32 characters, including only letters, digits, periods (.), hyphens (-), dollar signs ($), and underscores (_). It cannot start with a period (.).
SSH PortSSH port of the target server to be connected.
Authentication Mode
The options are:
- Password
- Public and private keys
NOTE:If you select Public and private keys for SSH connection, you can generate the public and private keys in either of the following ways:
- Run the following command on the Windows terminal:
1ssh-keygen -b 3072 -t rsa -f D:\keypair_rsa
In D:\, you can find the generated public and private key files keypair_rsa.pub and keypair_rsa.
- Run the following command to customize public and private keys:
1ssh-keygen [-b bits] [-t rsa | dsa | ecdsa | ed25519 ] [-C comment] [-f output_keyfile]
Private Key Upload the keypair_rsa private key file.
NOTE:By using the public-private key authentication mode, an SSH connection can be automatically set up with the server and you do not need to enter the user name and password for subsequent connections.
(Optional)
Passphrase Enter the passphrase for generating the key.
Remember passphrase
If this option is selected, the passphrase will be remembered.
Upload Public Key
The options are:
- yes
- no
You do not need to upload the public key if it has been configured on the server.
Public Key Upload the keypair_rsa.pub public key file.
SSH User Name
SSH user name of the target server to be connected.
SSH Password
Enter the SSH password of the target server.
Remember password
If this option is selected, the password will be remembered.
Workspace
Address for storing the code synchronized to the target server during remote compilation and debugging. The default value is ~/workspace. The system automatically creates one if this directory does not exist.
- A message is displayed indicating that the host authenticity cannot be determined. Click OK. The target server is added successfully.Figure 4 Host authenticity not established
Figure 5 Target server added successfully
- Click Modify in the Operation column. In the Modify Target Server dialog box that is displayed, you can modify the parameters of the target server.Figure 6 Modifying the target server
- Click Login in the Operation column to jump to the terminal window. Then you can log in to the target server.Figure 7 Logging in to the target server
- Delete target servers.
- Select multiple target servers and click Batch Delete. In the dialog box that is displayed, click OK to delete the selected target servers.
- Click Delete in the Operation column. In the Delete the Target Server dialog box that is displayed, you can click OK to delete the single target server.
Figure 8 Batch deleting target servers
Figure 9 Deleting a single target server
- Click Configure JSON File to open the setting.json file. You can add, modify, or delete target server parameters in the file.Figure 10 setting.json file
- label indicates the server alias.
- ip indicates the IP address of the server.
- port indicates the SSH port.
- username indicates the SSH user name.
- privatekey indicates the private key path.
- workspace indicates the workspace.


