I have an RSA SSH key with a passphrase on Windows 11, with OpenSSH.
I tried to add it to the agent:
C:\code> ssh-add -k C:\Users\user\.ssh\id_rsa
Enter passphrase for C:\Users\user\.ssh\id_rsa:
Identity added: C:\Users\user\.ssh\id_rsa (C:\Users\user\.ssh\id_rsa)
I was hoping for it to prevent me type the passphrase each time I use the key.
Obviously, it is not working:
C:\code> git fetch
Enter passphrase for key '/c/Users/user/.ssh/id_rsa'
The agent is running:
Get-Service ssh-agent
Status Name DisplayName
------ ---- -----------
Running ssh-agent OpenSSH Authentication Agent
Do you have any idea on what can be investigated?
Thanks
git
using the same version of OpenSSH asssh-add
/ssh-agent
? Yourgit
maybe using its own build of OpenSSH, while you maybe usingssh-add
from Win32-OpenSSH. Those are possibly incompatible.