title: Failed to connect to the host via ssh: Shared connection to <server> closed
body: <p>I am running my playbok from Ansible Tower. As per the Job output server is able to connect, server is able to connect</p>
  
  <blockquote>
    <p>ok: [localhost -> ] => {
        "ping_result": {
            "ansible_facts": {
                "discovered_interpreter_python": "/usr/bin/python"
            },
            "changed": false,
            "failed": false,
            "ping": "pong"
        } }</p>
  </blockquote>
  
  <p>But after which I get the below error,</p>
  
  <blockquote>
    <p> Failed to connect to the host via ssh: Shared connection
    to servername closed.  ESTABLISH SSH CONNECTION FOR USER:
    xyz</p>
  </blockquote>
  
  <p>*</p>
  
  <blockquote>
    <p>fatal: [servername: FAILED! => {
        "ansible_facts": {}, 
        "changed": false, 
        "failed_modules": {
            "setup": {
                "failed": true, 
                "module_stderr": "Shared connection to servername.\r\n", 
                "module_stdout": "", 
                "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", 
                "rc": 1
            }
        }, 
        "msg": "The following modules failed to execute: setup\n" }</p>
  </blockquote>
  
  <p>*</p>