# problems with initial auth setup for AWX to hosts, when have working ansible

**URL:** <https://forum.ansible.com/t/problems-with-initial-auth-setup-for-awx-to-hosts-when-have-working-ansible/31192>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 3, 2019, 6:10pm UTC](https://forum.ansible.com/t/problems-with-initial-auth-setup-for-awx-to-hosts-when-have-working-ansible/31192 "2019-09-03T18:10:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Brown](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@Philip\_Brown](https://forum.ansible.com/u/Philip_Brown)\
**Post date:** [September 3, 2019, 6:10pm UTC](https://forum.ansible.com/t/problems-with-initial-auth-setup-for-awx-to-hosts-when-have-working-ansible/31192/1 "2019-09-03T18:10:25Z")

</div>

howdy folks,  
I am new to all this, and have just set up an initial ansible install with a few registered hosts in /etc/ansible/hosts

ansible all -m ping

works fine.

So then I grabbed AWX 6.1 and did a docker-compose install on my machine as well.  
I can log in. I can add inventory hosts, using the same names.  
I updated the “Demo Credential” to have a cred type of type Machine, and then cut-n-pasted the private id\_rsa  
into the “SSH PRIVATE KEY” section.  
It appears to have accepted it.

Since it is a root-to-root key, I left “PRIVILEGE ESCALATION METHOD” blank, as I think i’m supposed to do.

But when I try to actually use it  
eg:  
Inventories → Demo Inventory → Hosts  
(x) check a hostbox, RUN COMMANDS  
module = ping

i just get an error.

Identity added: /tmp/awx\_7\_1\_adjdj0/artifacts/7/ssh\_key\_data (axxx@yyy)  
devhost01 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).”,  
“unreachable”: true  
}

It’s not LITERALLY unreachable, becuase when I do  
docker exec -it (awx\_task)  
and do  
pinghost01

it comes back fine.

What can I do?

(are there any basic “migrate ansible to AWX” guides? I’ve looked around, but havent found a step by step guide yet)
