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


Revision #2
Created 9 June 2023 06:50:50 by bluecrow76
Updated 4 July 2024 23:11:26 by bluecrow76