# ssh failure on ubuntu 16.04

**URL:** <https://forum.ansible.com/t/ssh-failure-on-ubuntu-16-04/25419>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [September 6, 2017, 4:22pm UTC](https://forum.ansible.com/t/ssh-failure-on-ubuntu-16-04/25419 "2017-09-06T16:22:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukman\_Salifu](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@Lukman\_Salifu](https://forum.ansible.com/u/Lukman_Salifu)\
**Post date:** [September 6, 2017, 4:22pm UTC](https://forum.ansible.com/t/ssh-failure-on-ubuntu-16-04/25419/1 "2017-09-06T16:22:25Z")

</div>

Am new to ansible and cannot seem to get the very basics started.

##### ANSIBLE VERSION

ansible 2.3.2.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = Default w/o overrides  
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

##### CONFIGURATION

##### OS / ENVIRONMENT

Ubuntu 16.O4

##### SUMMARY

ssh works OK from the host control machine, however when I use anisble i get the error below.

used same credentials to login.

12.5.18.14 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: Connection closed\r\nConnection to 12.5.18.14 closed by remote host.\r\n”,  
“unreachable”: true  
}

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [September 6, 2017, 4:42pm UTC](https://forum.ansible.com/t/ssh-failure-on-ubuntu-16-04/25419/2 "2017-09-06T16:42:52Z")

</div>

Your control machine is Ubuntu 16.04, but what is your target machine  
12.5.18.14 running?  
And what do you see when you run the playbook with '-vvvv'?
