Skip to content

PEM-encoded password-protected ssh keys are not supported leading to "Error resolving authority" error #248

@p12tic

Description

@p12tic

When trying to connect to a certain host I get this error:

[Info  - 20:32:06.795] Resolving ssh remote authority 'my-host' (attemp #1)
[Trace  - 20:32:06.819] Identity keys:
/path/to/key ssh-rsa SHA256:XXX
[Info  - 20:32:07.352] Trying no-auth authentication
[Info  - 20:32:07.414] Trying publickey authentication: /path/to/key ssh-rsa SHA256:XXX
[Error  - 20:32:07.538] Error resolving authority
Error: All configured authentication methods failed
    at me (.../extensions/jeanp413.open-remote-ssh-0.0.49/out/extension.js:1:155776)
    at .../extensions/jeanp413.open-remote-ssh-0.0.49/out/extension.js:1:409435
    at authHandler (.../extensions/jeanp413.open-remote-ssh-0.0.49/out/extension.js:1:404812)
    at Se (.../extensions/jeanp413.open-remote-ssh-0.0.49/out/extension.js:1:158994)
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11)

Turns out that I was using old-style PEM-encoded key (header has BEGIN (RSA|DSA|EC) PRIVATE KEY text). Openssh private keys (header has BEGIN OPENSSH PRIVATE KEY) work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions