10-13-2022 03:11 PM
Hi guys.
Im new using Ansible, so I just copied a playbook from the Net, but when Im trying to use it, I receive an ssh error.
Checked on Internet but found nothing.
Have you guys experienced this issue or know how to solve?
$ ansible-playbook Tenants_epg.yml -v
Using /etc/ansible/ansible.cfg as config file
PLAY [Create a Tenant, App profile, VRF, Bridge Domain, EPGs] ********************************************************
TASK [Create a tenant] ***********************************************************************************************
fatal: [198.18.153.144]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Unable to negotiate with 198.18.153.144 port 22: no matching host key type found. Their offer: ssh-rsa", "unreachable": true}
PLAY RECAP ***********************************************************************************************************
198.18.153.144 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
I solved another query playbook changing the DH Param to 2048, but haven`t solved this one yet.
Would appreciate the help
10-17-2022 01:18 AM
Add the type in the file ~/.ssh/config
Host your-remote-host HostkeyAlgorithms +ssh-rsa
07-05-2024 01:42 PM
I have same Issue:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide