PowerShell / PowerShell/Win32-OpenSSH

Version 8.1 doesn't support keys with passphrase generated by the 7.7.2.0 version

Open
#1,705 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

Steps:

  1. use x64 ssh-keygen from the 7.7.2.0 version to generate a key:
    ssh-keygen -b 2048 -C "your_email@example.com" -f new_rsa
  2. enter passphrase

This generates a key that isn't compatible with the 8.1.0.0 version

For example:

  1. run ssh-keygen on generated key:
    ssh-keygen -p -f new_rsa

And you'll get

Failed to load key new_rsa: invalid format

Same result will be with the ssh:
ssh hostname

Load key "c:\\Users\\<user_name>\\.ssh\\new_rsa": invalid format

Client OperatingSystem
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041

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

Start by reproducing the issue with the listed ssh-keygen and ssh commands, using a key generated by version 7.7.2.0 and loading it with 8.1.0.0. Compare the key parsing and compatibility paths for these commands; done means 8.1.0.0 can load and use the generated passphrase-protected key without the invalid-format error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
authentication, 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.