-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant connect to legacy host using ssh-rsa /ssh-dss hostkey algorithm #15181
Comments
does this work with any of our previous awx-ee images? can you help pin point when this stop working. |
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
|
@TheRealHaoLiu @dberardo-com I found this same issue with older Keys. We had the following in our Inventory and it was still failing to connect. After further investigation, this was caused by the crypto policies in the EE image. This used to work with older AWX versions that ran in CentOS 7 and 8, but turns out the EE images are using CentOS Stream 9 which has SHA1 disabled. I added this to our custom EE images to run
For more details refer to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening#proc_re-enabling-sha-1_using-the-system-wide-cryptographic-policies This error indicates the issue is with the crypto policies, specially the I created this PR ansible/awx-ee#248 |
great catch ! ist this setting any sort of defaults ? update-crypto-policies --set DEFAULT:SHA1 is it possible to avoid setting sha1 as the default ? or no need to bother ? |
@dberardo-com DEFAULT is the default setting. DEFAULT:SHA1 is just appending SHA1 to the default. Do not need to worry. Redhat docs recommends it, there is another setting called LEGACY which will also enable SHA1 but that is the one is not recommended by Redhat. This is how it looks
|
@rchaud hi Do you know when this PR is expected to be merged? The changes included are really important for me. |
I failed continously with rsa key created by command "ssh-keygen". |
Please confirm the following
[email protected]
instead.)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
The text was updated successfully, but these errors were encountered: