ansible winrm : the specified credentials were rejected by the server

Опубликовано: 15 Октябрь 2024
на канале: Devops Learning
7,306
29

Hello Guys, Please use below commands to solve the issue.
First check the winrm config , if basic auth is false in service section please set it true using 2nd command.

$ winrm get winrm/config
$ Set-Item -Force WSMan:\localhost\Service\auth\Basic $true
$ winrm configsddl default

Useful search on google:
ansible the specified credentials were rejected by the server winrm | ansible basic authentication | ansible plaintext the specified credentials were rejected by the server | ansible winrm connection error the specified credentials were rejected by the server | ansible the specified credentials were rejected by the server | ansible winrm connection error the specified credentials were rejected by the server

Thanks.