Error initializing command NET SSH Proxy ConnectError

Tried to run a command and got the following error: Error intiializing command: NET: : SSH: :Proxy: :ConnectError - command failed: /usr/bin/sss_ssh_knownhostproxy -p 22

Expected outcome:
Expected the command to pass and not fail

Foreman and Proxy versions:
foreman 1.24.3
Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7
Other relevant data:
I looked up error on Red Hat -When we run the sss_ssh_knownhostsproxy command, it shows the same “Reverse lookup failed” error. When we remove the ProxyCommand option from /etc/ssh/ssh_config, the connection works

I did as suggested and it did not help.

This is a very old version that’s long unsupported, but even there Bug #25481: Foreman fails to execute ansible commands when connected to ipa server - Installer - Foreman should have been resolved. I’d note that in Bug #28559: Hardcoding Proxy Command breaks running Ansible on Debian - Installer - Foreman a regression of that patch was fixed.