SSH Invalid Private Key Format Errors (opens in new tab)
Oof! I just spun my wheels for a couple of hours trying to get SSH to recognise a private key. I had a CI/CD workflow that needed to log into an remote host via SSH to deploy something. This uses a secret containing a ECDSA private key, encoded as a PEM file, with the section header OPENSSH PRIVATE KEY. Example: -----BEGIN OPENSSH PRIVATE KEY----- xxxxx xxxxx -----END OPENSSH PRIVATE KEY----- When I tried using this key though, I was getting various SSH errors. The issue was either that the v...
Read the original article