diff --git a/check-before-deployment.md b/check-before-deployment.md index b047549e1a0ce..8a192b28ff143 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -582,11 +582,12 @@ This section describes how to manually configure the SSH mutual trust and sudo w tidb ALL=(ALL) NOPASSWD: ALL ``` -3. Use the `tidb` user to log in to the control machine, and run the following command. Replace `10.0.1.1` with the IP of your target machine, and enter the `tidb` user password of the target machine as prompted. After the command is executed, SSH mutual trust is already created. This applies to other machines as well. +3. Use the `tidb` user to log in to the control machine, and run the following command. Replace `10.0.1.1` with the IP of your target machine, and enter the `tidb` user password of the target machine as prompted. After the command is executed, SSH mutual trust is already created. This applies to other machines as well. Newly created `tidb` users do not have the `.ssh` directory. To create such a directory, execute the command that generates the RSA key. To deploy TiDB components on the control machine, configure mutual trust for the control machine and the control machine itself. {{< copyable "shell-regular" >}} ```bash + ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub 10.0.1.1 ```