Leon Mika

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
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help