栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

tidb修改互信后报错处理ssh: unable to authenticate, attempted methods [none publickey], no supported methods r

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

tidb修改互信后报错处理ssh: unable to authenticate, attempted methods [none publickey], no supported methods r

修改.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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/751954.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号