Why I need to input the passphrase multiple times when push the code

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After I click the push button in the “Source Control” panel, I need to input the passphrase multiple times, usually 2 times, but even reach 3 times sometimes.

This never happened when I use the terminal to push the code

Steps to Reproduce

In the Source Control panel:

  • Trigger some change
  • Commit the code
  • Push the commit

Expected Behavior

Input the passphrase only one time

Operating System

Windows 10/11

Version Information

Version: 3.27.14 (user setup)
VS Code Extension API: 1.128.0
Commit: 69b724ebc67ec522c1b5d287a5025f7a7e81be90
Date: 2026-10-23T21:46:59.851Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Evan_Lee,

This is most likely the Sync Changes button. After a commit, the main button in Source Control becomes “Sync Changes”, which runs a pull and then a push (two connections), plus a fetch if git.fetchOnPull is on (three). Your key isn’t held by an SSH agent, so every connection asks for the passphrase again. A terminal git push is a single connection, which is why it only asks once.

The cleanest fix on Windows is to let the Windows OpenSSH agent hold the key:

  1. In an admin PowerShell: Get-Service ssh-agent | Set-Service -StartupType Automatic then Start-Service ssh-agent
  2. In a normal PowerShell: ssh-add $env:USERPROFILE\.ssh\id_ed25519 (use your key’s file name) and enter the passphrase once
  3. Point git at Windows OpenSSH so it uses that agent: git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"
  4. Restart Cursor and push again. It should no longer ask.

If you’d rather not use an agent, use Push from the ... menu in Source Control instead of Sync Changes (one prompt), and check that git.fetchOnPull and git.autofetch are off in Settings.

If you’re already using Push and still see 2-3 prompts, let me know and we’ll dig further.