From 3099001311f91c151a4ad739f86f4ef827b206ca Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 6 Apr 2021 16:44:31 +0800 Subject: [PATCH] cherry pick #5200 to release-4.0 Signed-off-by: ti-srebot --- check-before-deployment.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-before-deployment.md b/check-before-deployment.md index 24b56a4d1a2bf..6adc51f896a61 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -555,11 +555,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 ```