# Unable to do ssh

**URL:** <https://forum.ansible.com/t/unable-to-do-ssh/35306>\
**Category:** Ansible Project\
**Created:** [June 8, 2021, 6:54am UTC](https://forum.ansible.com/t/unable-to-do-ssh/35306 "2021-06-08T06:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![subrat\_mangaraj](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@subrat\_mangaraj](https://forum.ansible.com/u/subrat_mangaraj)\
**Post date:** [June 8, 2021, 6:54am UTC](https://forum.ansible.com/t/unable-to-do-ssh/35306/1 "2021-06-08T06:54:49Z")

</div>

Hello Team,

I am trying to connect and run few commands in destination hosts . In between destinatino hosts jump server there.

Can you help on this.

Ansible.cfg config

[defaults]:  
inventory = /etc/ansible/hosts  
ansible\_python\_interpreter=/usr/bin/python3  
host\_key\_checking = no  
look\_for\_keys = False

.ssh config

sh-3.2# cat /Users/veda/.ssh/config  
Host tot  
Hostname x.x.x.x  
User veda1  
IdentityFile /Users/veda/.ssh/id\_rsa  
IdentitiesOnly yes

[epc]  
y.y.y.y

Hosts file  
[test:vars]  
ansible\_connection=network\_cli  
use\_persistent\_connections=yes  
ansible\_port=22  
ansible\_ssh\_port=22  
ansible\_network\_os=ios  
ansible\_user=ravi  
#ansible\_ssh\_user=ravi  
#ansible\_ssh\_password=xxxx  
ansible\_password=xxxx

Getting this error  
“msg”: “[Errno None] Unable to connect to port 22 on y.y.y.y” Looks like playbook trying to run root user
