Windowsserverdocs: OpenSSHUtils Not Needed

Created on 14 May 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/windowsserverdocs

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


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2

Most helpful comment

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.

All 5 comments

( 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:

https://stackoverflow.com/questions/52113738/starting-ssh-agent-on-windows-10-fails-unable-to-start-ssh-agent-service-erro

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.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

tgmoorhead picture tgmoorhead  Â·  4Comments

gabrielluizbh picture gabrielluizbh  Â·  5Comments

buzzywinter picture buzzywinter  Â·  5Comments

osresearch picture osresearch  Â·  5Comments

gabrielluizbh picture gabrielluizbh  Â·  5Comments