'"msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,password).",

I tried to connect to the server using ansible but it doesn't work The error :

172\.31.37.91 | UNREACHABLE! =\> {
"changed": false,
"msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,password).",
"unreachable": true
}

By the way, using ssh to conneting to the server is working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source