Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ssh_dispatch_run_fatal Invalid key length

After the recent update of High Sierra, when I try to connect to another device via ssh, i keep getting the following error:


ssh_dispatch_run_fatal: Connection to <IP ADDRESS OF REMOTE END> port 22: Invalid key length

MacBook Pro (Retina, 13-inch,Early 2015), macOS High Sierra (10.13.2)

Posted on Dec 18, 2017 5:45 AM

Reply
Question marked as Best reply

Posted on Dec 20, 2017 12:47 AM

Looks like this is due to the OpenSSH version in MacOS getting upgraded to 7.6. The release notes (available here: https://www.openssh.com/releasenotes.html) list "Refuse RSA keys <1024 bits in length and improve reporting for keys that do not meet this requirement." as a 'potentially-incompatible change'.


So far, the only 'work-around' I've found is to re-generate the RSA key, with a size of 1024 bits or larger, on the server you're connecting to.

3 replies
Question marked as Best reply

Dec 20, 2017 12:47 AM in response to moikonom

Looks like this is due to the OpenSSH version in MacOS getting upgraded to 7.6. The release notes (available here: https://www.openssh.com/releasenotes.html) list "Refuse RSA keys <1024 bits in length and improve reporting for keys that do not meet this requirement." as a 'potentially-incompatible change'.


So far, the only 'work-around' I've found is to re-generate the RSA key, with a size of 1024 bits or larger, on the server you're connecting to.

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 ID.