Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 单机部署关闭集群出错
[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Problem Phenomenon and Impact] Why does single-machine deployment still require SSH authorization? How can it be operated normally? Seeking help.
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]
The error message is very detailed.
I know the issue is with SSH authorized login, but I don’t know how to proceed next. The key point is that it’s a single machine; there is no such problem with multiple machines.
Try restarting the machine to see if it can come up. For single-node deployment, it’s best to use the root user for installation to avoid any issues.
Try copying the contents of .tiup/storage/cluster/clusters/ClusterName/ssh/id_rsa.pub to the ~/.ssh/authorized_keys file, and remember to back up first.
The simplest way is to add --user root -p after the command and enter the username and password.
I think the problem might be related to the configuration of the TiDB cluster. You can try to check the configuration files of each component to ensure that the settings are correct. Additionally, you can also check the logs of each component to see if there are any error messages or warnings.
I misread it. I thought it was an error during installation. Stopping the cluster does not require an account password.
Restarting, stopping, and destroying all don’t work, the errors are exactly the same. It was installed using the root user.
Was the tidb-test user created by yourself, and was the mutual trust established by yourself?
Even for single-node deployment, SSH mutual trust is required. 
Mutual trust is not necessary. Use the root user for installation. The tidb user will be automatically created after the installation is complete.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.