Git ssh agent running but not saving my username or password
I use Posh-Git and followed Phil Haack's advice for using SSH. That is, I did the following:
- Install msysgit.
- Update Posh- Git
- Add ssh-agent to PATH.
Now when I start Powershell ssh-agent starts up. It's good. If I run
I can see this:
91 8 1728 4208 286 0.23 2520 ssh-agent
When it starts, it doesn't ask me for my username and password. This is not good.
Also, during one PowerShell session, git asks me repeatedly for my username and password and never remembers it.
Finding my SSH keys
My SSH keys are located in
where I see two files:
I went ahead and ran
However, the agent does not remember my credentials.
Testing with git shell
msysgit comes with a git shell, and when I run it, it just authenticates perfectly. I have never asked for a username and password at all.
I reviewed the answer here Configuring git over SSH to login once , which recommends checking if we are using https or ssh protocol.
git config -l
In my git shell and my usual Windows PowerShell prompt, all repositories are using HTTPS.
source to share