SSH Error Message Appears When Expanding TiKV Nodes

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

Original topic: tikv扩容节点出现ssh报错信息

| username: 奶茶喝嗨了

[TiDB Usage Environment] Production Environment
[TiDB Version] tidb4.0.1.1
[Encountered Problem]


[Reproduction Path]
Expansion topology configuration

[Problem Phenomenon and Impact]
SSH passwordless mutual trust has been configured, and mutual access using ssh+ip is possible.

| username: xiaohetao | Original post link

The image is not very clear, could you resend it?

| username: xiaohetao | Original post link

This kind of issue is generally caused by a lack of mutual trust.

| username: 奶茶喝嗨了 | Original post link

Re-uploaded.

| username: xiaohetao | Original post link

Manually test if the central control machine can connect to each machine in the cluster via SSH without a password.

Also, after you have configured mutual trust, you need to manually test the connection once because the first connection requires you to input “yes”. This might be the cause of the issue.

| username: 奶茶喝嗨了 | Original post link

The SSH connection is working. When I execute tiup cluster scale-out tidb-cluster scale-out.yaml on the host, the tidb-data and tidb-deploy directories are created on the new server.

| username: OnTheRoad | Original post link

Are the permissions of the deployment directory for the expanded nodes consistent with those of the other nodes?

| username: 奶茶喝嗨了 | Original post link

It’s the same.

| username: 奶茶喝嗨了 | Original post link

Could it be an issue with the TiDB user permissions on the expanded node?

| username: OnTheRoad | Original post link

Check the TiDB permissions, sudo privileges are required.

| username: 奶茶喝嗨了 | Original post link

Are you referring to configuring passwordless sudo? I’ve already set it up and there’s no problem.

| username: 奶茶喝嗨了 | Original post link

Problem solved, I forgot to turn off the firewall :sob:

| username: OnTheRoad | Original post link

:rofl: Details determine success or failure. Haha.

| username: xiaohetao | Original post link

Yes, details determine success or failure.

| username: wisdom | Original post link

Communication issue, perhaps.