大家好,很久没用 ansible 了,请教个报错:
- 我已经在 client 的 /root/.authorised_keys 里添加了 server 的 id_ras.pub ,我直接 ssh 过去是正常免密的;
- 我在 server 上是用 mrco 用户,client 上希望直接用 root 用户;
报错:
172.17.2.124 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,password).\r\n",
"unreachable": true
}