Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create agent root reg key, ERROR:5 #285

Closed
kentcb opened this issue Aug 5, 2016 · 3 comments
Closed

cannot create agent root reg key, ERROR:5 #285

kentcb opened this issue Aug 5, 2016 · 3 comments

Comments

@kentcb
Copy link

kentcb commented Aug 5, 2016

Surface Book running Windows 10.

A couple of days ago, I began getting this output when starting a new Powershell session:

agent_start pid:8336, dbg:1, child:0, pipe:0
cannot create agent root reg key, ERROR:5
Could not open a connection to your authentication agent.
Loading personal and system profiles took 1500ms.

I don't know exactly when this started, but it seemed to coincide with an installation of posh-git, which makes no sense to me. At the time, I hadn't installed Win10 anniversary edition yet.

I tried re-installing via:

choco install win32-openssh --force

The reinstall worked for a while, then started failing with the above again. This time it was after the anniversary edition installation.

I just tried reinstalling again, but this time it seems to have had no positive effect.

Any idea how to rectify this?

@mikemaccana
Copy link
Contributor

I manually updated to the May 30 build and am now receiving the same ERROR:5 error, though my agent seems to be working:

agent_start pid:2724, dbg:1, child:0, pipe:0
cannot create agent root reg key, ERROR:5
Identity added: C:\Users\mike/.ssh/id_rsa (C:\Users\mike/.ssh/id_rsa)

@manojampalam
Copy link
Contributor

Looks like something (Posh-GIT) is trying to start its version of ssh-agent process but picked up Win32-OpenSSH's version - these 2 version work in different ways. Try removing Win32-OpenSSH bin path from your %PATH% (reopen if needed)

@mikemaccana
Copy link
Contributor

Thanks @manojampalam that fixed it. Specifically, I disabled posh-git since I don't find it provides much value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants