SSH load key error in libcrypto
Occasionally on Ubuntu 22.04 I've experienced the error message shown below when trying to connect to a server using an ssh key:
$ ssh firstname.lastname@example.org -i ~/.ssh/id_ed25519 Load key "id_ed25519": error in libcrypto
I finally realized the problem was the presence of DOS style CRLF end of line designators. Using dos2unix to convert the end of line designators resolved the issue.
$ dos2unix ~/.ssh/id_ed25519