-i does not need to use .
tiup cluster deploy tidb-test v7.5.0 ./topology.yaml --user root -i /home/root/.ssh/gcp_rsa (replace with your path)
The square brackets are useless. It’s more convenient to use the root account for installation, no need to configure mutual trust.
Changing [-i] to -i still doesn’t work.
Do multiple machines in the cluster need a root account, and do the passwords for root need to be consistent?
The path has actually been changed to my own path, which is the path of the public key, but I didn’t use the root user.
You need to keep your SSH password consistent, and do you have a TiDB user?
Root deployment can be done with user root -p
, no need for -i
and such, and no need to configure mutual trust. All machines need to have the same root password.
What does it mean for the SSH password to remain consistent? Does it mean that the login passwords for non-root users in the cluster also need to be consistent?
Is the error still related to SSH authentication? Are the other three servers working fine with SSH passwordless login? Also, have you added the ordinary user operation permissions in the sudoers file?
SSH login to the other three servers is normal and does not require entering the corresponding target machine’s password.
On the corresponding three machines, the authorized_keys file was generated using the ssh-copy-id user@target_host command.
It’s probably a trust issue, configure mutual trust.
What is this? Do I still need to input something?
Normally, password-free setup should look like this:

Take a look at this sshd configuration.
Did you set a password for id_rsa? What needs to be entered after ssh in this picture?
I reset the mutual trust again, and now it has been completed.
However, when checking for potential risks in the cluster, an error was reported. The error looks quite similar to the previous one.
For the SSH issue, try connecting manually. If that doesn’t work, make sure all password configurations are the same, then just enter the password.
No need for the -i parameter, tiup supports passwordless mutual trust by default.
Try connecting manually to troubleshoot the SSH issue.