Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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 Top-ranking 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 Top-ranking 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 Account.