`msg: "Invalid/incorrect password: Sorry, try again."` when using `-K`
BeginnerTroubleshootingConnection and SSH Failures
Answer
Likely causes → Typed the login password instead of the sudo password, the account has no sudo rights, or the password differs per host.
Diagnose → ssh -t host sudo -v and enter the password manually.
Fix → Provide the right password via -K or ansible_become_password (vaulted).
Prevent → Use passwordless sudo with limited commands for the automation account.
More on Connection and SSH Failures
`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: Permission denied (publickey,password)."}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.1.15 port 22: Connection timed out"}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host web01 port 22: Connection refused"}`Beginner`Host key verification failed.` after rebuilding a serverBeginnerThe playbook hangs for ever at "Gathering Facts" on one hostIntermediate`Failed to connect to the host via ssh: Too many authentication failures`Intermediate