본문 바로가기

Linux

[Linux] ssh pem file invalid format error

This error originates from Windows-style line ending of the private key file. You need to remove CRLF. This can be easily done with this command.

dos2unix your_file.pem