# unable to connect ssh using vsts deployment to ansible server to run a playbook

**URL:** <https://forum.ansible.com/t/unable-to-connect-ssh-using-vsts-deployment-to-ansible-server-to-run-a-playbook/27142>\
**Category:** Ansible Project\
**Created:** [March 28, 2018, 9:50pm UTC](https://forum.ansible.com/t/unable-to-connect-ssh-using-vsts-deployment-to-ansible-server-to-run-a-playbook/27142 "2018-03-28T21:50:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![workarea448](https://avatars.discourse-cdn.com/v4/letter/w/7cd45c/32.png) [@workarea448](https://forum.ansible.com/u/workarea448)\
**Post date:** [March 28, 2018, 9:50pm UTC](https://forum.ansible.com/t/unable-to-connect-ssh-using-vsts-deployment-to-ansible-server-to-run-a-playbook/27142/1 "2018-03-28T21:50:09Z")

</div>

Trying to setup SSH connection to **@10.130.2.185:22  
2018-03-28T21:18:07.7645624Z  
2018-03-28T21:18:07.7659138Z PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2018-03-28T21:18:07.7665793Z  
2018-03-28T21:18:07.7724096Z  
2018-03-28T21:18:07.7736949Z TASK [Create directories] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2018-03-28T21:18:07.7743383Z  
2018-03-28T21:18:07.9955446Z failed: [10.130.2.10] (item=/home/**/myagent/) =\> {“item”: “/home/**/myagent/", “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n”, “unreachable”: true}  
2018-03-28T21:18:07.9963617Z  
2018-03-28T21:18:08.1469635Z failed: [10.130.2.10] (item=/home/**/mywork/) =\> {“item”: “/home/**/mywork/“, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n”, “unreachable”: true}  
2018-03-28T21:18:08.1476549Z  
2018-03-28T21:18:08.1491515Z fatal: [10.130.2.10]: UNREACHABLE! =\> {“changed”: false, “msg”: “All items completed”, “results”: [{”\_ansible\_ignore\_errors": null, “\_ansible\_item\_result”: true, “item”: "/home/**/myagent/”, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n”, “unreachable”: true}, {”\_ansible\_ignore\_errors": null, “\_ansible\_item\_result”: true, “item”: “/home/\*\*\*\*\*\*\*\*/mywork/”, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n”, “unreachable”: true}]}  
2018-03-28T21:18:08.1499747Z  
2018-03-28T21:18:08.1515897Z to retry, use: --limit @/tmp/Infrax/Agent\_config.retry  
2018-03-28T21:18:08.1525882Z  
2018-03-28T21:18:08.1532153Z  
2018-03-28T21:18:08.1545673Z PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2018-03-28T21:18:08.1552962Z  
2018-03-28T21:18:08.1565134Z 10.130.2.10 : ok=0 changed=0 unreachable=1 failed=0
