I have git installed and it works great in the command prompt, but when I open up powershell it gives me this warning:
WARNING: Could not find ssh-agent
I have pageant running and loaded with my private key. This works in all the gui tools and the command prompt but not in Powershell.
What’s going on?
For those looking for a detailed explanation have a read of this blog post. Below is a quote from the blog post. Ultimately the
ssh-agent.exeneeds to be in the path, or resolved some other way.EDIT:
It appears most of the people don’t bother reading the linked blog and the original extract did not quote the full solution, so I’ve expanded the quote from the blog below.
There are numerous ways to resolve the error, based on the likes to all other answers. One known to work is quoted below. Scan though other answers they may be more appropriate for you.