I assume you already properly configured your terminal to save key using ssh-agent. if that was the case you need to make sure that there is no other ssh.exe presented especially under C:\Program Files\Git\usr\bin in my case vscode preferred the ssh.exe in that path and this broke since I don't have ssh-agent there. my solution was just to delete it since the C:\Windows\System32\OpenSSH\ssh.exe is serving as the ssh command