PowerShell / PowerShell/Win32-OpenSSH

ssh-agent certicates not loading id

Open
#1,333 21 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-ssh-agent Investigate Issue-Bug Resolution - Answered
Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

"OpenSSH for Windows" version
7.7.2.1
Client OperatingSystem
Windows 10 Home 1809
What is failing
When I have both a cert and a id eg like
id_rsa
id_rsa-cert ( ecdsa versions )
it says loaded eg
ssh-add
It says added Key and Cert

Identity added: C:\Users\Asus/.ssh/id_rsa (C:\Users\Asus/.ssh/id_rsa)
Certificate added: C:\Users\Asus/.ssh/id_rsa-cert.pub (vault-root-:xxxxxx)

BUT only adds the cert

PS C:\Users\Asus> ssh-add -l
2048 SHA256:Em8Fxxxxxxx C:\Users\Asus/.ssh/id_rsa (RSA-CERT)

if I do this in Ubuntu even on WSL it works as expected even with older versions of openssh

Expected output
ssh-add -l
2048 SHA256::Em8Fxxxxxxx /home/craig/.ssh/id_rsa (RSA)
2048 SHA256::Em8Fxxxxxxx /home/craig/.ssh/id_rsa (RSA-CERT)

Actual output
PS C:\Users\Asus> ssh-add -l
2048 SHA256:Em8Fxxxxxxx C:\Users\Asus/.ssh/id_rsa (RSA-CERT)

Any ideas while on native version is does not work ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report on native OpenSSH for Windows 7.7.2.1 using an id_rsa key and matching id_rsa-cert.pub, then compare ssh-add output with ssh-add -l. Done means ssh-add -l lists both the RSA identity and its RSA-CERT entry, as shown in the expected output.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.