# SSH is stuck when i am running a playbook or ping request

**URL:** <https://forum.ansible.com/t/ssh-is-stuck-when-i-am-running-a-playbook-or-ping-request/37965>\
**Category:** Ansible Project\
**Created:** [May 4, 2023, 7:11pm UTC](https://forum.ansible.com/t/ssh-is-stuck-when-i-am-running-a-playbook-or-ping-request/37965 "2023-05-04T19:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Mahajan](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@Rohit\_Mahajan](https://forum.ansible.com/u/Rohit_Mahajan)\
**Post date:** [May 4, 2023, 7:11pm UTC](https://forum.ansible.com/t/ssh-is-stuck-when-i-am-running-a-playbook-or-ping-request/37965/1 "2023-05-04T19:11:58Z")

</div>

Hello All,

I am trying to run the Ansible playbook with ansible version [core 2.12.10]. i tried to take manually ssh for that specific host.  
previously I am using the 2.9 version there is no issue of the SSH connection.

following is the last verbose logs after run the Ansible-playbook

ESTABLISH SSH CONNECTION FOR USER: Username  
SSH: EXEC sshpass -d10 ssh -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘User=“Username”’ -o ConnectTimeout=60 -o ‘ControlPath=“/tmp/ansible-ssh-%h-%p-%r”’ 172.24.1.8 ‘/bin/sh -c ‘"’“‘echo ~username && sleep 0’”’"‘’

I tried to look it up but was unable to find any information, appreciate your help on this.

---

<div class="post-metadata">

**Author:** ![Rohit\_Mahajan](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@Rohit\_Mahajan](https://forum.ansible.com/u/Rohit_Mahajan)\
**Post date:** [May 5, 2023, 7:41am UTC](https://forum.ansible.com/t/ssh-is-stuck-when-i-am-running-a-playbook-or-ping-request/37965/2 "2023-05-05T07:41:25Z")

</div>

Hi Ravi,

I installed Ansible as per procedure soo when I am checking it’s showing ansible core 2.12.10 & I tried to downgrade the Ansible version to 2.9.0. However, still there is the same issue SSH connection is stuck in the Establish process.

![](https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif)
