PowerShell / PowerShell/Win32-OpenSSH
ssh-add gives invalid format error
Open
Nobody has claimed this yet.
Area-ssh-agent
Investigate
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
> ssh -V
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
> ssh-keygen -t ed25519 -C email@example.com -f id_email_example_com
...
> ssh-add id_email_example_com
Expected behavior
key being added
Actual behavior
Error message `Could not add identity ".\id_email_example_com": invalid format`
Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
Visuals
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the supplied ssh-keygen and ssh-add commands on the stated Windows and OpenSSH versions, then locate the ssh-add identity-loading entry point. No source file or test is named in the issue; done means the generated Ed25519 key is accepted and a regression test covers this command path.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, operating-systems, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100