# unable to ssh

**URL:** <https://forum.ansible.com/t/unable-to-ssh/32875>\
**Category:** Ansible Project\
**Created:** [May 7, 2020, 2:17pm UTC](https://forum.ansible.com/t/unable-to-ssh/32875 "2020-05-07T14:17:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hitesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Post date:** [May 7, 2020, 2:17pm UTC](https://forum.ansible.com/t/unable-to-ssh/32875/1 "2020-05-07T14:17:46Z")

</div>

Hi All

I am facing ssh connection issues with my network switch, need help to establish ssh connection

root@VPC0000260:/etc/ansible# ssh 10.25.200.1  
Unable to negotiate with 10.25.200.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1  
root@VPC0000260:/etc/ansible# ansible -m ping 10.25.200.1  
10.25.200.1 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: Unable to negotiate with 10.25.200.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1”,  
“unreachable”: true  
}

Regards  
Hitesh

---

<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:** [May 7, 2020, 3:58pm UTC](https://forum.ansible.com/t/unable-to-ssh/32875/2 "2020-05-07T15:58:11Z")

</div>

Ansible is an automation tool that uses SSH as its transport.  
Before automating things, make sure you can manually connect to the  
device using SSH:

[https://docs.ansible.com/ansible/latest/user\_guide/connection\_details.html](https://docs.ansible.com/ansible/latest/user_guide/connection_details.html)

Fixing SSH problems is not in scope for this list, but in this case  
the error is very clear and obvious: no matching key exchange method  
found.  
Google that and the first hit will explain what your problem is (and  
how to fix it).

Also, you are running ansible as user 'root' - this is dangerous and  
unnecessary.

Dick
