# ansible -i provisioning/hosts -u vagrant -m setup 192.168.111.222 -vvv failed

**URL:** <https://forum.ansible.com/t/ansible-i-provisioning-hosts-u-vagrant-m-setup-192-168-111-222-vvv-failed/15845>\
**Category:** Ansible Project\
**Created:** [August 2, 2014, 7:47pm UTC](https://forum.ansible.com/t/ansible-i-provisioning-hosts-u-vagrant-m-setup-192-168-111-222-vvv-failed/15845 "2014-08-02T19:47:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tze\_Yang\_Ng](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tze\_Yang\_Ng](https://forum.ansible.com/u/Tze_Yang_Ng)\
**Post date:** [August 2, 2014, 7:47pm UTC](https://forum.ansible.com/t/ansible-i-provisioning-hosts-u-vagrant-m-setup-192-168-111-222-vvv-failed/15845/1 "2014-08-02T19:47:55Z")

</div>

Newbie here, Try to run the below command, but got the error code below, can some one please help. Not sure what i had did wrong.

ansible -i provisioning/hosts -u vagrant -m setup 192.168.111.222 -vvv

\<192.168.111.222\> ESTABLISH CONNECTION FOR USER: vagrant

\<192.168.111.222\> REMOTE\_MODULE setup

\<192.168.111.222\> EXEC [‘ssh’, ‘-C’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/Users/tzeyangng/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=vagrant’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.111.222’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1407008722.68-154496619923741 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1407008722.68-154496619923741 && echo $HOME/.ansible/tmp/ansible-tmp-1407008722.68-154496619923741’”]

192.168.111.222 | FAILED =\> SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

---

<div class="post-metadata">

**Author:** ![Amr\_Ali](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Amr\_Ali](https://forum.ansible.com/u/Amr_Ali)\
**Post date:** [August 2, 2014, 8:35pm UTC](https://forum.ansible.com/t/ansible-i-provisioning-hosts-u-vagrant-m-setup-192-168-111-222-vvv-failed/15845/2 "2014-08-02T20:35:46Z")

</div>

rerun the playbook using -vvvv should give you a detailed ssh error. (4 vs not 3)
