ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.54k stars 3.35k forks source link

cant connect to legacy host using ssh-rsa /ssh-dss hostkey algorithm #15181

Open dberardo-com opened 2 weeks ago

dberardo-com commented 2 weeks ago

Please confirm the following

Bug Summary

adding to ansible_ssh_common_args -oHostKeyAlgorithms=ssh-rsa results in this error:

[ssh_dispatch_run_fatal: Connection to UNKNOWN port 65535: error in libcrypto](kex: host key algorithm: (no match))

AWX version

24.3.1

Select the relevant components

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

add the run var ansible_ssh_common_args -oHostKeyAlgorithms=ssh-rsa

Expected results

smooth connection

Actual results

it does not get a key match

Additional information

No response

TheRealHaoLiu commented 2 weeks ago

does this work with any of our previous awx-ee images? can you help pin point when this stop working.

dberardo-com commented 2 weeks ago

i didnt play around the versions , but i am sure it works with an older one. check this out : https://www.reddit.com/r/ansible/comments/1443kd8/comment/l3vkq11/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

u/Technical-Tax1578 avatar Technical-Tax1578 • 3d ago seems an openssl issue, perhaps too high of a version. try to use another execution environment, 21.11.0 worked for me, perhaps you can try higher ones and let me know which is the last one to work. https://quay.io/repository/ansible/awx-ee?tab=tags&tag=latest