192.168.42.120 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n",
    "unreachable": true
}
192.168.42.121 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n",
    "unreachable": true
}
192.168.42.30 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n",
    "unreachable": true
}
192.168.42.122 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n",
    "unreachable": true

出现这个错误的原因是密钥没有发送成功

解决方案:

  在ansible容器里建立sshkeygen后再发一遍

相关文章:

  • 2022-12-23
  • 2021-08-20
  • 2021-04-09
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2023-01-03
猜你喜欢
  • 2021-07-09
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-09-14
  • 2021-12-25
  • 2022-12-23
相关资源
相似解决方案