Encountering SSH Issues While Installing TiDB 5.0.1

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 安装tidb5.0.1一直报ssh有问题

| username: 灰太狼来了

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)

| username: 猴子的救兵 | Original post link

Permission issue, you probably can’t log in directly with SSH key either, use the tidb account.

| username: Hi70KG | Original post link

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.
| username: Hi70KG | Original post link

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.

| username: wakaka | Original post link

“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.

| username: 猴子的救兵 | Original post link

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.

| username: forever | Original post link

  1. Manually SSH into the target host to confirm if the password is correct.
  2. Check if the file permissions are correct:
    /home/user_home_directory 755 or 700 (cannot be 775/777…)
    /home/user_home_directory/.ssh 700
    /home/user_home_directory/.ssh/authorized_keys 600
  3. Check /etc/ssh/sshd_config
    PasswordAuthentication yes
| username: xiaohetao | Original post link

Before deployment, check the environment configuration according to this: TiDB 环境与系统配置检查 | PingCAP 文档中心

| username: tidb狂热爱好者 | Original post link

Don’t use TiDB, this system needs to be used.

| username: Billmay表妹 | Original post link

You can take a look at these two articles.