修改.ssh互信后,集群不能正常stop和start 报错ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain。
这时候需要更新ssh信息让tiup知道,更新信息时候卡住了。
[tidb@db1 ~]$ tiup cluster reload --ssh system tidb-test Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.7.0/tiup-cluster reload --ssh system tidb-test Will reload the cluster tidb-test with restart policy is true, nodes: , roles: . Do you want to continue? [y/N]:(default=N) y + [ Serial ] - SSHKeySet: privateKey=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa, publicKey=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa.pub + [Parallel] - UserSSH: user=tidb, host=10.0.4.12 + [Parallel] - UserSSH: user=tidb, host=10.0.4.6 + [Parallel] - UserSSH: user=tidb, host=10.0.4.6 + [Parallel] - UserSSH: user=tidb, host=10.0.4.12 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.12 + [Parallel] - UserSSH: user=tidb, host=10.0.4.6 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.3 + [Parallel] - UserSSH: user=tidb, host=10.0.4.6 + [Parallel] - UserSSH: user=tidb, host=10.0.4.6 + [ Serial ] - UpdateTopology: cluster=tidb-test + Refresh instance configs - Regenerate config pd -> 10.0.4.3:2379 ... ⠙ InitConfig: cluster=tidb-test, user=tidb, host=10.0.4.3, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/config-cache... - Regenerate config pd -> 10.0.4.12:2379 ... ⠙ InitConfig: cluster=tidb-test, user=tidb, host=10.0.4.12, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/config-cac... - Regenerate config pd -> 10.0.4.6:2379 ... ⠙ InitConfig: cluster=tidb-test, user=tidb, host=10.0.4.6, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/config-cache... - Regenerate config tikv -> 10.0.4.3:20160 ... ⠙ InitConfig: cluster=tidb-test, user=tidb, host=10.0.4.3, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/config-ca... - Regenerate config tikv -> 10.0.4.12:20160 ... ⠙ InitConfig: cluster=tidb-test, user=tidb, host=10.0.4.12, path=/home/tidb/.tiup/storage/cluster/clusters/tidb-test/config-... - Regenerate config tikv -> 10.0.4.6:20160 ... ⠙ - Regenerate config tidb -> 10.0.4.3:4000 ... ⠙ - Regenerate config tidb -> 10.0.4.12:4000 ... ⠙ - Regenerate config tidb -> 10.0.4.6:4000 ... ⠙ - Regenerate config tiflash -> 10.0.4.3:9000 ... ⠙ - Regenerate config cdc -> 10.0.4.3:8300 ... ⠙ - Regenerate config prometheus -> 10.0.4.3:9090 ... ⠙ - Regenerate config prometheus -> 10.0.4.6:9091 ... ⠙ - Regenerate config grafana -> 10.0.4.3:3000 ... ⠙ - Regenerate config alertmanager -> 10.0.4.3:9093 ... ⠙ - Regenerate config alertmanager -> 10.0.4.6:9098 ... ⠙
解决办法:
su - tidb cd .ssh cp id_rsa /home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa cp authorized_keys /home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa.pub
执行reload --ssh system 问题解决
tiup cluster reload --ssh system tidb-test


![tidb修改互信后报错处理ssh: unable to authenticate, attempted methods [none publickey], no supported methods r tidb修改互信后报错处理ssh: unable to authenticate, attempted methods [none publickey], no supported methods r](http://www.mshxw.com/aiimages/31/751954.png)
