Description of problem: when pulling an application using git over ssh on a non-22 port the connection is not correctly made. Version-Release number of selected component (if applicable): 2.4.1 How reproducible: customer environment Steps to Reproduce: 1.set up a ssh server on port 7999 2.set up acm 2.4.1 3. set up an application using an url connecting to git over the non-22 port (pathname: 'ssh://git:7999/somepath/someapp.git' or pathname: 'git:7999/somepath/someapp.git') Actual results: "ssh: handshake failed: knownhosts: key is unknown Failed to git clone with the primary channel: ssh: handshake failed: knownhosts: key is unknown" Expected results: ssh handshake doesn't fail Additional info: port 22 may still be open on the machine and used for another ssh instance. there are differences between 2.4.1 and 2.4.2 that could affect this : - 2.4.1 : https://github.com/open-cluster-management/multicloud-operators-subscription/blob/1eb6d1b69e9caf36367697fa0a27d6872ae3e826/pkg/utils/gitrepo.go#L355 - 2.4.2 : https://github.com/open-cluster-management/multicloud-operators-subscription/blob/22f699c0d09671c78ef0d5a7f4880b5522971b7f/pkg/utils/gitrepo.go#L367 more details in private
This will be fixed in 2.4.2. Until 2.4.2 is available, here is the patching instruction. https://github.com/open-cluster-management/multicloud-operators-subscription/blob/main/docs/patching_subscription_image.md Please ask the customer if this can be done until they upgrade to 2.4.2 to resolve the SSH issue. They can use 2.4.2-PR618-84b4eaa24a64d8126e2e9fcaf2eab365cf3604ce image tag with the instruction.
2.4.2 is currently planned for end of February.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat Advanced Cluster Management 2.4.2 security updates and bug fixes), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0735
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days