ssh_dispatch_run_fatal: Invalid key length

With macOS High Sierra 10.13.4, I understand they have changed the key length for SSH.


Is it possible to change anything with ssh config to allow lower key length? I cannot recreate a longer key length from a specific server (old APC UPS).

macOS High Sierra (10.13.4)

Posted on Apr 17, 2018 4:23 PM

Reply
7 replies

Apr 19, 2018 8:04 AM in response to etresoft

Hi etresoft,


When I try to SSH to an APC UPS that cannot regenerate a longer host key, it fails with message: ssh_dispatch_run_fatal: Connection to X.X.X.X port 22: Invalid key length.


Here are the options in APC. I've already deleted host key and regenerated a new one on the APC but it doesn't have options to make it longer. So I'm curious if there's anything I can do on the Mac/SSH side as I'm assuming the new default is 2048.

User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ssh_dispatch_run_fatal: Invalid key length

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.