SSH remote sessions in Claude Desktop on 3P changedthird-party/claude-desktop/ssh-remote-sessions
Nearest release: v2.1.336, published 4 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Dec 2026 22:58 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+9added
Lines−5removed
From line
500
where the diff opens
First seen
28 Aug 2026
this site's first read of the page
Recorded edits54to this page, all time
### Skills for every user of a host
The whole hunk
from line 500, old and new numbered
/
from line 500
500500
501501If the host has its own Claude Code managed settings, those take precedence over the policy Claude Desktop supplies, as described under [Interaction with Claude Code's own managed settings](https://claude.com/docs/third-party/claude-desktop/code.md#interaction-with-claude-code%E2%80%99s-own-managed-settings) for local sessions.
502502
503### Skills for every user of a host
504
505In a remote session on a Linux host, Claude Code loads the skills in `/etc/claude-code/.claude/skills/` on the host. To give every user of the host the same skills, put each skill at `/etc/claude-code/.claude/skills/<skill-name>/SKILL.md` on the host, not on devices. See [Deploy skills for all users](https://code.claude.com/docs/en/desktop#deploy-skills-for-all-users).
506
503507### Plugin hooks on the remote host
504508
505509Requires Claude Desktop 7.37095.0 or later. From a macOS or Linux device to a macOS or Linux host, Claude Desktop copies a plugin's `hooks` directory with the rest of the plugin. The plugin's [hooks](https://code.claude.com/docs/en/hooks) then run on the host in a remote session. Plugins that users add themselves are copied this way too. In this section, a plugin's hooks are those in its `hooks` directory.
from line 518
514518* **Enterprise Admin Console**: the device gets its configuration from the [console](https://claude.com/docs/third-party/claude-desktop/admin-console.md)
515519* **Inference provider**: it is the [Claude API](https://claude.com/docs/third-party/claude-desktop/claude-api.md), or Code sessions get [`code` (not `cli`) settings from a Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway-config#apply-code-settings-in-the-code-tab)
516520* **Policy on the device**: the device's Claude Code managed settings set a key such as `allowManagedHooksOnly`, `pluginConfigs`, or `disableSideloadFlags`
517* **The plugin**: it declares `userConfig` options or dependencies, or comes from a marketplace that the user added from a folder or file on the device, or from one whose address in the device's Claude Code managed settings differs from where the device fetched it, until the device fetches it again
521* **The plugin**: it declares `userConfig` options or dependencies, or comes from a marketplace that the user added from a folder or file on the device, or from one whose address in the device's Claude Code managed settings differs from where the device fetched it, until Claude Code on the device next starts and fetches it from the address in those settings
518522
519523In other cases, such as these, the plugin isn't copied at all:
520524
from line 598
594598| - | - | - | - |
595599| Shell commands on `<host>` are running outside your organization's sandbox, which couldn't start | `cannot_start` | The sandbox is turned on but isn't running, for example because a Linux host lacks the sandbox dependencies | [Check the host first](https://claude.com/docs/third-party/claude-desktop/code.md#user-namespaces), then install the [dependencies](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2) on the host, then start a new session |
596600| Your organization's sandbox isn't running on `<host>`. Claude Code has no sandbox for that operating system | `unsupported` | The host runs an operating system that Claude Code reports no sandbox for, such as Windows | Use a macOS or Linux host |
597| Your organization's sandbox policy isn't fully applied on `<host>`, so shell commands there may go beyond its limits | `overridden` | Claude Code managed settings on the host replace your policy, even when they say nothing about the sandbox, or they turn the sandbox off or loosen it | Set `parentSettingsBehavior` to `"merge"` in the host's managed settings, and remove `sandbox` values there that conflict with your policy |
601| Your organization's sandbox policy isn't fully applied on `<host>`, so shell commands there may go beyond its limits | `overridden` | Claude Code managed settings on the host replace your policy, even when they say nothing about the sandbox, or they turn the sandbox off or loosen it. Under `refuse`, also where `sandbox.excludedCommands` has entries | Set `parentSettingsBehavior` to `"merge"` in the host's managed settings, and remove `sandbox` values there that conflict with your policy. For excluded commands, see [What refuse leaves out](#what-refuse-leaves-out) |
598602| No message | `unknown` | Claude Code gives no answer that Claude Desktop can read | In a session on that host, ask Claude to run the two commands under [Confirm commands run inside the sandbox](https://code.claude.com/docs/en/sandboxing#confirm-commands-run-inside-the-sandbox) |
599603
600604Before Claude Desktop 6.28899.2, the `overridden` message says `so shell commands there may run outside it`.
from line 607
603607>
604608> On a device where the [local configuration file governs](#sandbox-from-the-host%E2%80%99s-managed-settings), Claude Desktop 4.16336.0 or later words these messages differently. They name `the sandbox from your inference configuration`, not your organization's sandbox or sandbox policy.
605609
606The fix for the `overridden` message and the fix for the message under [Policy status on the remote host](#policy-status-on-the-remote-host) start at the same setting, `parentSettingsBehavior`. With Claude Desktop 3.6556.1 or later, a session that shows one of the two messages doesn't add the other until the first no longer applies. Your collector still receives the event of the check whose message is held back, and the **Sandbox** row of `/status` still shows the sandbox's state.
610Except where excluded commands cause the `overridden` message, the fix for that message and the fix for the message under [Policy status on the remote host](#policy-status-on-the-remote-host) start at the same setting, `parentSettingsBehavior`. With Claude Desktop 3.6556.1 or later, a session that shows one of the two messages doesn't add the other until the first no longer applies. Your collector still receives the event of the check whose message is held back, and the **Sandbox** row of `/status` still shows the sandbox's state.
607611
608612To check one session, have the user open it, wait until Claude has finished replying, and enter `/status` in the message box. Where your policy includes the sandbox, the **Session info** card has a **Sandbox** row, which shows what Claude Desktop last learned. Requires Claude Desktop 2.31226.0 or later. Find the value's `reason` in the table of messages and reasons for the cause and the fix:
609613
from line 672
668672Don't count on `refuse` to keep everything on the host inside the sandbox:
669673
670674* **A refused host**: Claude Desktop still connects to it and installs Claude Code there, and MCP servers and `SessionStart` hooks can run before Claude Code exits.
671* **Excluded commands**: the sandbox doesn't cover commands listed in Claude Code's `sandbox.excludedCommands`. Under `refuse`, Claude Desktop shows the [`overridden`](#sandbox-status-on-the-remote-host) warning where Claude Code reports such commands, and the session continues.
675* **Excluded commands**: the sandbox doesn't cover commands listed in Claude Code's `sandbox.excludedCommands`. Under `refuse`, Claude Desktop shows the [`overridden`](#sandbox-status-on-the-remote-host) warning where Claude Code reports such commands, and the session continues. To clear the warning, remove the entries from the SSH user's `~/.claude/settings.json` on the host, and from the Claude Code managed settings that apply there. Setting `parentSettingsBehavior` to `"merge"` doesn't clear it.
672676* **Other programs**: MCP servers on the host, hooks, `!` commands, and the session's terminal (including commands that Claude runs there) run outside the sandbox.
673677* **The SSH account and repositories**: `refuse` doesn't protect against the SSH user, or against settings in that account or in a repository.
674678
from line 1390
13861390
13871391If the details speak of an owner, a mode, a symbolic link, or a file system, say that the file isn't a regular file, or name a file or folder outside `/etc/claude-desktop-ssh` other than `/` and `/etc`, another account may have been able to change what the folder holds. Replace the folder whole, as root in a terminal on the host.
13881392
1389If the details speak of the owner or mode of `/` or `/etc`, first fix that folder's owner and mode. Change the folder alone, without `-R`. Leave every other folder that the details name as it is.
1393If the details speak of the owner or mode of `/` or `/etc`, first check whether an account other than root owned that folder or could write to it. If so, treat the host as compromised and stop this repair. Otherwise, fix that folder's owner and mode. Change the folder alone, without `-R`. Leave every other folder that the details name as it is.
13901394
13911395The warning under [Set the time limit on the host](#set-the-time-limit-on-the-host) applies to this write too. Make a new folder beside the old one, with your own number in place of 60:
13921396
No line in this hunk matches that.