"Could not open a connection to your authentication agent."

3

Something has happened to my Windows Powershell, so whenever I open it there is a big long pause and then it says "Could not open a connection to your authentication agent." What is an authentication agent, and why is Powershell trying to open a connection to it?

Moss

Posted 2015-02-11T23:45:25.133

Reputation: 584

Are you using git? – DavidPostill – 2015-02-12T12:10:50.997

I have git installed, yes. – Moss – 2015-02-12T17:40:58.917

OK. The reason I asked is that googling for "Could not open a connection to your authentication agent" returns lots of results for git and/or ssh but nothing for powershell – DavidPostill – 2015-02-12T17:48:12.730

Have you done something like in this link [http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx/](Configure Git in PowerShell So You Don’t Have to Enter Your Password All the Damn Time) – DavidPostill – 2015-02-12T17:52:24.427

Possible duplicate of [SO] question Connecting git to github on windows 7 without bash

– DavidPostill – 2015-02-12T17:54:33.993

But I'm not trying to do anything with ssh or github. I get this message when I am simply starting Powershell. The links provided don't provide answers to my problem, although maybe if I read them more careful I could start to deduce what is going on. – Moss – 2015-02-12T18:42:27.877

Answers

0

This is what worked for me:

Environment: OS: Windows 10 Enterprise x64 Powershell running as administrator

1) Install ps-get: (type in powershell and enter

(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex

2) Then:

Install-Module Posh-Git

3) Start powershell as admin in Bsldevutilities

3.1) Type

ssh-agent

3.2) type

ssh-add c:\users\yourname\.ssh\id_rsa

Sudhanshu Mishra

Posted 2015-02-11T23:45:25.133

Reputation: 101