Whenever I enter a git
command in powershell, I'm asked:
Enter passphrase for key '/c/Users/***/.ssh/id_rsa'
This key is created with a passphrase:
ssh-keygen -t rsa -b 4096 -C "myemail@somewhere.com"
I've setup ssh-agent
to load on startup of my powershell, and the environment variables SSH_AUTH_SOCK
and SSH_AGENT_PID
are setup.
The connection to github is successful:
ssh -T git@github.com
replies with: Hi tkvw! You've successfully authenticated, but GitHub does not provide shell access.
This shows the git urls are used instead of https
.
git remote -v
origin git@github.com:tkvw/pshazz.git (fetch)
origin git@github.com:tkvw/pshazz.git (push)
This shows the agent is active and the key is loaded:
ssh-add -l
4096 b1:73:2a:11:....63:e8:2a:34 /c/Users/***/.ssh/id_rsa (RSA)
But calling a git operation:
git fetch
Enter passphrase for key '/c/Users/***/.ssh/id_rsa':
I have no ideas left. I don't want to use git bash
or something, I like this to work from powershell.