Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 安装tidb5.0.1一直报ssh有问题
SSH has always had issues. It was not deployed using the root user; instead, a dedicated tidb user was created.
tiup-cluster-debug-2022-08-23-13-39-41.log (83.3 KB)
Permission issue, you probably can’t log in directly with SSH key either, use the tidb account.
Pay attention to a few points regarding SSH:
- Set the SSH connection limit to 40.
- Check if TiDB can use sudo without entering a password.
- Establish mutual trust for both the tidb and root users.
It is recommended to use tiup cluster check ./*.yaml
to check for any failed options before deployment. If there are any, they need to be fixed first.
“error”: "ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey]
The tidb user cannot SSH to the remote node. You can try using the tidb user to execute the command ssh -vvvv 172.16.162.76 date.
To solve the TiDB user’s SSH passwordless issue, it’s basically fine if you can achieve passwordless login directly via shell, then proceed with the deployment.
Before deployment, check the environment configuration according to this: TiDB 环境与系统配置检查 | PingCAP 文档中心
Don’t use TiDB, this system needs to be used.
You can take a look at these two articles.