unable to ssh

208 views
Skip to first unread message

Hitesh Kumar

unread,
May 7, 2020, 10:18:27 AM5/7/20
to ansible...@googlegroups.com
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 

Dick Visser

unread,
May 7, 2020, 11:58:43 AM5/7/20
to ansible...@googlegroups.com
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

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
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CANQHRf1EdNK0-7KjnX9%2Bn257%2B%2BeTJpp4%3DbhAjY4vEzENt_oONg%40mail.gmail.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
Reply all
Reply to author
Forward
0 new messages