# SSH: global commands from remote ~/.cursor/commands/ not loaded (rules work)

**URL:** <https://forum.cursor.com/t/ssh-global-commands-from-remote-cursor-commands-not-loaded-rules-work/150941>\
**Category:** Bug Reports\
**Tags:** ssh, rules\
**Created:** [February 5, 2026, 5:24pm UTC](https://forum.cursor.com/t/ssh-global-commands-from-remote-cursor-commands-not-loaded-rules-work/150941 "2026-02-05T17:24:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain\_Cassan](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@Romain\_Cassan](https://forum.cursor.com/u/Romain_Cassan)\
**Post date:** [February 5, 2026, 5:24pm UTC](https://forum.cursor.com/t/ssh-global-commands-from-remote-cursor-commands-not-loaded-rules-work/150941/1 "2026-02-05T17:24:46Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

When using Cursor over SSH, global commands are only picked up from my local ~/.cursor/commands/ (the machine running Cursor). Commands in the remote user’s home directory (~/.cursor/commands/ on the SSH host) are never found: they don’t appear in the loaded-commands list in Settings, and /commandname in chat offers to create a new command instead of running the existing file.  
By contrast, rules work when defined on the remote (e.g. in the remote .cursor/rules/ or project rules); only commands seem to be limited to the local home.

### Steps to Reproduce

Create a command file on the ssh host user home directory (~/.cursor/commands/my-command.md) and open Cursor.  
Try /my-command in an agent.

### Expected Behavior

When connected via SSH, Cursor should also load global commands from the remote user’s ~/.cursor/commands/, so that the same workflow works whether I’m local or in an SSH session.

### Operating System

Linux

### Version Information

Version: 2.4.22  
VSCode Version: 1.105.1  
Commit: 618c607a249dd7fd2ffc662c6531143833bebd40  
Date: 2026-01-26T22:51:47.692Z  
Build Type: Stable  
Release Track: Default  
Electron: 39.2.7  
Chromium: 142.0.7444.235  
Node.js: 22.21.1  
V8: 14.2.231.21-electron.0  
OS: Linux x64 6.12.66

### For AI issues: which model did you use?

Auto

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 6, 2026, 7:08am UTC](https://forum.cursor.com/t/ssh-global-commands-from-remote-cursor-commands-not-loaded-rules-work/150941/4 "2026-02-06T07:08:37Z")

</div>

Hey, thanks for the report.

It looks like global commands from `~/.cursor/commands/` should work, but they aren’t being picked up in SSH sessions.

There’s a similar post from yesterday [Commands are not detected in the global cursor directory](https://forum.cursor.com/t/commands-are-not-detected-in-the-global-cursor-directory/150967) where global commands don’t load even without SSH, so this might be part of a broader issue with the global commands feature.

For now, a workaround is to use project-level commands (`.cursor/commands/` in your project root) and those should work on the remote machine.

I’ve shared this with the team. Your report will help us prioritize it. **strong text**

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [February 28, 2026, 7:11am UTC](https://forum.cursor.com/t/ssh-global-commands-from-remote-cursor-commands-not-loaded-rules-work/150941/6 "2026-02-28T07:11:24Z")

</div>

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