From e78f1d818f0abd409389dda0c90b0ec930c8f90c 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-5.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 b21e9e9acf66d..816520596f40a 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -581,11 +581,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 ```