Git Push/SSH Not Working in Cursor Terminal After macOS Update

Issue

Git push operations fail in Cursor’s integrated terminal with DNS resolution errors. Both SSH and HTTPS connections to GitHub fail. This started 2-3 days ago after updating to macOS 15.6 Sequoia.

Error Messages

SSH:

ssh: Could not resolve hostname github.com: -65563

fatal: Could not read from remote repository. 

HTTPS:

fatal: unable to access github.com/username/repo.git: Could not resolve host: gihub.com

Environment

- Cursor Version: 2.4.21

- macOS Version: 15.6 (Sequoia)

- Git: Xcode’s git

What Works vs. What Doesn’t

:white_check_mark: **Works in Cursor terminal:**

- Python DNS resolution: python3 -c “import socket; print(socket.gethostbyname(github.com))”

- curl https://github.com

- Local git commands (git status, git log, etc.)

:cross_mark: **Doesn’t work in Cursor terminal:**

- `git push` (both SSH and HTTPS)

- ping github.com

- ssh -T github.com

:white_check_mark: **Works in regular Terminal.app:**

- All git operations work perfectly

Root Cause

Cursor’s extension host runs in a sandboxed environment that cannot access macOS Network framework DNS configuration. Git’s network operations use the Network framework for DNS, which fails with error -65563. Python and curl use `libresolv` which works in the sandbox.

Attempted Solutions

1. :white_check_mark: Granted Local Network access in System Settings (enabled, restarted Cursor, issue persists)

2. :white_check_mark: Switched from SSH to HTTPS remote (same DNS error)

3. :cross_mark: Cannot modify git config from Cursor terminal (“Operation not permitted”)

Questions

1. Is this a known issue with Cursor 2.4.21 and macOS 15.6?

2. Can Cursor settings grant Network framework DNS access to the extension host?

3. Will this be fixed in a future update?

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Cursor IDE
  • Cursor CLI
  • Background Agent (GitHub, Slack, Web, Linear)
  • BugBot
  • Somewhere else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Hey, this is a known issue with macOS Local Network permissions after updating to v2.4.21. We’ve seen a few similar reports over the last week.

Try these two options:

  1. Sandbox settings in Cursor
  • Cursor Settings > Agents > Auto-Run > Auto run mode: switch to “Ask every time” or “Run Everything (Unsandboxed)”
  • Also check Auto-Run Network Access. It should be enabled
  1. macOS permissions
  • System Settings > Privacy & Security > Local Network
  • Find Cursor and enable the permission
  • Important: macOS sometimes shows Cursor under a different name in this list. One user found that enabling the permission for a completely different app (Notion) fixed it. Try enabling them one by one and test after each change.

If Cursor doesn’t show up in the list, run ping github.com from the normal Cursor terminal (not an agent). That should trigger the system permission prompt.

Let me know if any of this helps.

1 Like

Thank you. Switching to “Run Everything (Unsandboxed)” works!

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.