Skip to content

Git 2.49.0 on Windows11 configured to use external/system-provided OpenSSH 9.8p2 fails to load any and all .ppk keys from within git-bash #5601

Open
@dsidirop

Description

@dsidirop

( Forward warning: I guesstimated that the issue is related to the external OpenSSH but maybe I'm wrong and the problem is inherent on git itself - below I'm laying out the steps I used to reproduce the issue on my machine YMMV)

Steps to reproduce on Windows11 (10.0.26100 Build 26100 - fully updated up to 21-April-2025):

  1. Install git for windows version 2.49.0 and make sure to specify "use external OpenSSH" during the installation

  2. Remove the default OpenSSH that comes with Windows11 just to be sure it doesn't get in the way. From an admin powershell console type (you might need to restart the machine after this):

Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

  1. Install OpenSSH 9.8p2 system-wide and make sure that services.msc does display two OpenSSH services that the 32bit .msi installer is supposed to install:

https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v9.8.3.0p2-Preview

(I used the 32bit flavor but I guess the 64bit flavor will do just as well)

  1. Now open a git-bash terminal and type:

eval $(ssh-agent -s)
ssh-add <path to your .ppk>
ssh-add -L

Expected behavior:

The ppk you just added should be listed just fine in the terminal.

Actual behaviour:

Getting an error about "improper format" on the .ppk specified or something to that effect

Notes:

This doesn't happen if we downgrade to git version 2.48.1 - everything works just fine with that version in this regard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions