How to fix ssh_dispatch_run_fatal?

On a Linux 8 system with FIPS enabled, connecting to a Linux 6 system fails, ssh -v displays the following message

ssh_dispatch_run_fatal: Connection to XXX port 22: invalid argument

Solution

The simplest solution is to delete file /etc/ssh/moduli on the Linux 6 system serving as sshd backend.

The same workaround is applicable for other Linux 8 FIPS clients connecting to non-FIPS servers using this key exchange method.

David Cao
David Cao

David is a Cloud & DevOps Enthusiast. He has years of experience as a Linux engineer. He had working experience in AMD, EMC. He likes Linux, Python, bash, and more. He is a technical blogger and a Software Engineer. He enjoys sharing his learning and contributing to open-source.

Articles: 275

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *