# Incorrect Sudo Password - For Ansible Remote Host Jobs

**URL:** <https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [August 16, 2019, 9:19am UTC](https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058 "2019-08-16T09:19:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalyan\_Alamuru](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_Alamuru](https://forum.ansible.com/u/Kalyan_Alamuru)\
**Post date:** [August 16, 2019, 9:19am UTC](https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058/1 "2019-08-16T09:19:39Z")

</div>

I’m running Job through Job Template which have three tasks i.e. Gather Facts on One Local Host(Where Tower is running and Job is Initiated from) and two other remote hosts, For which connectivity is working as I’ve tested in stand alone mode. I’ve created localadmin credential in tower and user in server and created Private/Public Key Pair and uploaded to remote servers and able to connect successfully connect from Tower Host to Remote Servers using local admin.  
My Remote Job started through Tower is failing with Incorrect Sudo Password. I can swtich to root from my localadmin user without any issues. But Job is failing with this Error, Do you’ve any idea why it is failing.

This is the error message : \<consumer-aws-web1.cloud.infra.buzz\> SSH: EXEC sshpass -d8 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘User=“localadmin”’ -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_212\_rfk\_vgn0/cp/86ff2d5cd2 -tt consumer-aws-web1.cloud.infra.buzz ‘/bin/sh -c ‘"’“'sudo -H -S -p “[sudo via ansible, key=qfprhujkykgyaciifxxcmafrkzbzybiq] password:” -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-qfprhujkykgyaciifxxcmafrkzbzybiq ; /usr/bin/python /home/localadmin/.ansible/tmp/ansible-tmp-1565945826.64-195516655885658/AnsiballZ\_setup.py’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’  
56  
Escalation failed  
57  
fatal: [consumer-aws-web1.cloud.infra.buzz]: FAILED! =\> {  
58  
“msg”: “Incorrect sudo password”

This Jobs are initiated through Tower Console.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 16, 2019, 9:28am UTC](https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058/2 "2019-08-16T09:28:14Z")

</div>

This is the list for Ansible not Tower, please contact Redhat support for help with Tower.

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [August 16, 2019, 9:29am UTC](https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058/3 "2019-08-16T09:29:31Z")

</div>

> I'm running Job through Job Template which have three tasks i.e. Gather Facts on One Local Host(Where Tower is running  
> and Job is Initiated from) and two other remote hosts, For which connectivity is working as I've tested in stand alone  
> mode. I've created localadmin credential in tower and user in server and created Private/Public Key Pair and uploaded  
> to remote servers and able to connect successfully connect from Tower Host to Remote Servers using local admin.  
> My Remote Job started through Tower is failing with Incorrect Sudo Password. I can swtich to root from my localadmin  
> user without any issues. But Job is failing with this Error, Do you've any idea why it is failing.
> 
> This is the error message : \<consumer-aws-web1.cloud.infra.buzz\> SSH: EXEC sshpass -d8 ssh -vvv -C -o ControlMaster=auto  
> -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="localadmin"' -o ConnectTimeout=10 -o  
> ControlPath=/tmp/awx\_212\_rfk\_vgn0/cp/86ff2d5cd2 -tt consumer-aws-web1.cloud.infra.buzz '/bin/sh -c '"'"'sudo -H -S -p  
> "[sudo via ansible, key=qfprhujkykgyaciifxxcmafrkzbzybiq] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo  
> BECOME-SUCCESS-qfprhujkykgyaciifxxcmafrkzbzybiq ; /usr/bin/python  
> /home/localadmin/.ansible/tmp/ansible-tmp-1565945826.64-195516655885658/AnsiballZ\_setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''  
> 56  
> Escalation failed  
> 57  
> fatal: [consumer-aws-web1.cloud.infra.buzz]: FAILED! =\> {  
> 58  
> "msg": "Incorrect sudo password"
> 
> This Jobs are initiated through Tower Console.
> 
> Thanks in advance

Sorry, but this mailing list is only for Ansible, not for Tower or AWX. Please contact Tower support.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
