我看教程多节点安装kubekey,一直ERRO[17:52:24 CST] Failed to connect to 10.110.77.113: could not establish connection to 10.110.77.113:22: ssh: handshake failed: ssh: unable to authenticate , attempted methods [none], no supported methods remain node=10.110.77.113,看上去像ssh连接的报错,但是我直接用ssh跑是能够正常链接的,请问是我配置有问题还是ssh账号密码有什么要求,ssh配置是
hosts:

  • {name: master, address: 10.110.77.111, internalAddress: 10.110.77.111, user: ××××, password: ××××}
    • {name: node1, address: 10.110.77.112, internalAddress: 10.110.77.112, user: ××××, password: ××××}
    • {name: node2, address: 10.110.77.113, internalAddress: 10.110.77.113, user: ××××, password: ××××}
  • Feynman 回复了此帖
  • haofei-zhang
    可以看看是不是 /etc/ssh/sshd_config的配置限制了程序链接ssh

    比如 PasswordAuthentication应该设置成true

    Feynman ssh每个节点确认通过账号密码都是可以连接的,我是看了这个文档了视频测试了很久才咨询的,是一定需要公钥互信才能访问吗?

      Feynman 都关掉的,我用私钥的方式登录还是报错,但是直接ssh访问已经是正常的了
      [k8sadmin@d-shhq-wuyou-02 data]$ ./kk create cluster -f config-sample.yaml
      ERRO[11:00:55 CST] Failed to connect to 10.110.77.113: could not establish connection to 10.110.77.113:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain node=10.110.77.113
      ERRO[11:00:55 CST] Failed to connect to 10.110.77.112: could not establish connection to 10.110.77.112:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain node=10.110.77.112
      ERRO[11:00:55 CST] Failed to connect to 10.110.77.111: could not establish connection to 10.110.77.111:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain node=10.110.77.111

        Feynman 没问题啊,我就是按照文档配置的,但是还是报错,请问是不是和执行的时候用的用户有关系