From 3edf8102e4299602ec1aa0ca481013e4da0a1e40 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 2 Apr 2021 19:50:15 +0800 Subject: [PATCH 1/3] add the rsa generating command in check-before-deployment.md --- 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 b047549e1a0ce..e7c51fdd37c2c 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 your local machine. {{< copyable "shell-regular" >}} ```bash + ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub 10.0.1.1 ``` From 921826186b8ae77020682b2d729250ab2e6e0dd5 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 6 Apr 2021 10:18:01 +0800 Subject: [PATCH 2/3] Update check-before-deployment.md --- check-before-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-before-deployment.md b/check-before-deployment.md index e7c51fdd37c2c..580dc5bb73412 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -582,7 +582,7 @@ 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. 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 your local machine. +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 target machine. {{< copyable "shell-regular" >}} From 57fda0a280e548f2f3a284e1fddf37d075f7c8a1 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 6 Apr 2021 10:29:45 +0800 Subject: [PATCH 3/3] Update check-before-deployment.md --- check-before-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-before-deployment.md b/check-before-deployment.md index 580dc5bb73412..8a192b28ff143 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -582,7 +582,7 @@ 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. 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 target machine. +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" >}}