OpenSSHUtils isn't necessary anymore. Just enable the OpenSSH Authentication Agent service, as detailed here:
https://stackoverflow.com/questions/52113738/starting-ssh-agent-on-windows-10-fails-unable-to-start-ssh-agent-service-erro
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
( cf. #4598 & #3400 )
See Pull Request #4788 for a suggested improvement to this issue.
(The PR will close this issue ticket when it gets merged.)
I found these instructions useful on StackOverflow:
The ssh-agent service was disabled which led me down the wrong path of trying to install an outdated package.
The correct solution was to enable the service in an admin terminal:
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
Then ssh-agent worked as expected.
Fair enough, thanks for the useful feedback.
@konstruktoid : Do you think there is something provided by @btipling you can use in your PR, or is it covered somewhere else?
I believe this is already documented in my PR.
To do that, start the ssh-agent service as Administrator and use ssh-add to store the private key.
# Make sure you're running as an Administrator
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent
# Now load your key files into ssh-agent
ssh-add ~\.ssh\id_ed25519
After completing these steps, whenever a private key is needed for authentication from this client, ssh-agent will automatically retrieve the local private key and pass it to your SSH client.
Most helpful comment
I believe this is already documented in my PR.