Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-docs

One read of Claude Documentationclaude-docs-20261203T233705Z

1 pages moved out of 299 read.

Pages moved 1 significant first
Pages read 299 in this capture
Captured 23:37 UTC
Corpus hash ad6998ce901b corpus-hash

What this read moved

1-1 of 1

third-party/claude-desktop/ssh-remote-sessions Changed · +82 / -88 lines

from line 2
22 
33> How Code sessions run on a remote host over SSH in Claude Desktop on 3P, the sshHostAllowlist key that enables them, which inference credentials work on a remote host, and what to check before turning them on
44 
5An SSH remote session is a [Code](https://claude.com/docs/third-party/claude-desktop/code.md) session whose Claude Code engine runs on another machine that the user reaches over SSH, while the session's interface stays in Claude Desktop on the user's device. Claude Desktop connects to the host, places the engine there, and starts the session with the policy from your managed configuration and, for most credential kinds, its inference credential. Users can work on code that lives on a development server, a build box, or a cloud workstation without copying it to their device. In Claude Desktop on third-party (3P), SSH remote sessions are off until you set the [`sshHostAllowlist`](https://claude.com/docs/third-party/claude-desktop/configuration#sshhostallowlist) key, because enabling them sends your inference credential to the hosts users connect to, unless the credential is one that stays on the device (see [Inference credentials on the remote host](#inference-credentials-on-the-remote-host)).
5An SSH remote session is a [Code](https://claude.com/docs/third-party/claude-desktop/code.md) session whose Claude Code engine runs on another machine that the user reaches over SSH, while the session's interface stays in Claude Desktop on the user's device. Users can work on code that lives on a development server, a build box, or a cloud workstation without copying it to their device.
66 
7In Claude Desktop on third-party (3P), SSH remote sessions are off until you [set the `sshHostAllowlist` key](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions#enable-ssh-remote-sessions), because enabling them sends your inference credential to the hosts users connect to, unless the credential is one that stays on the device (see [Inference credentials on the remote host](#inference-credentials-on-the-remote-host)).
8 
79> [!NOTE]
810>
911> SSH remote sessions are in beta in Claude Desktop on 3P and require Claude Desktop 1.40609.0 or later. The in-app configuration window marks `sshHostAllowlist` with a **Beta** pill.
from line 14
1214 
13151. **Connect.** The user picks an SSH host from the environment picker in Code, or adds one by entering its address, port, and an identity file. Claude Desktop connects through the device's OpenSSH client, or in some cases through its built-in SSH client (see [Host requirements](#host-requirements)), applies the host's entry from the device's `~/.ssh/config` (see [SSH configuration on the device](#ssh-configuration-on-the-device)), and prompts in the app if the host asks for a password or a one-time code.
14162. **Deploy.** Claude Desktop places a remote server and the Claude Code engine under `~/.claude/remote/` in the SSH user's home directory on the host ([Host requirements](#host-requirements) lists every path) and reuses them on later connections.
153. **Run.** The remote server starts the engine on the host with the policy from your managed configuration and the inference credential that Claude Desktop passes, if it passes one. Every file read, edit, shell command, and git operation runs on the host, in the working directory the user chose there. Claude Desktop connects to [managed MCP servers](https://claude.com/docs/third-party/claude-desktop/extensions.md#managed-mcp-servers-admin) from the device and exposes them to the engine as tools.
173. **Run.** The remote server starts the engine on the host with the policy from your managed configuration and the inference credential that Claude Desktop passes, if it passes one. Every file read, edit, shell command, and git operation runs on the host, in the working directory the user chose there.
16184. **Stream.** Claude's responses and tool output stream back to Claude Desktop. Permission prompts appear in Claude Desktop, and the engine waits on the host until the user answers.
1719 
1820The engine keeps running on the host through a dropped SSH link, device sleep, or the user quitting Claude Desktop. It finishes the current turn, or stops at a permission prompt, then idles. While Claude Desktop is disconnected or closed, an idle engine can still start a turn by itself, for example when scheduled work comes due (a `/loop` task, say) or when a background command ends. An engine that starts while [`scheduledTasksEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#scheduledtasksenabled) is `false` starts without Claude Code's scheduling tools, so `/loop` can't schedule work there. An engine that already runs keeps those tools until Claude Desktop replaces it. Whatever else can start a turn still can, a background command's end included. While Claude Desktop is disconnected or closed, a credential that it passed is not refreshed, so a turn that outlives that credential, or starts after it expires, can fail with an authentication error (see [Keep a long turn running while Claude Desktop is disconnected](#keep-a-long-turn-running-while-claude-desktop-is-disconnected)). The engine also keeps running through a restart of the app for an update.
from line 23
2123 
2224When the user reopens the session after a quit, Claude Desktop rejoins the engine or replaces it, unless it refuses to start the session:
2325 
24* **Rejoins**: on a macOS or Linux device, Claude Desktop 2.42304.0 or later tries to rejoin an engine that 2.42304.0 or later started. On a Windows device, Claude Desktop 3.1623.0 or later tries to rejoin an engine that 3.1623.0 or later started. If it rejoins, a turn still running goes on. It can fail to rejoin, for example after some Claude Desktop updates or after a change to the managed configuration since the engine started.
25* **Replaces**: if Claude Desktop doesn't rejoin the engine, for example because a version older than the minimums above started it, Claude Desktop ends the engine and starts a fresh one from the transcript stored on the host. A turn that finished while the app was closed is shown in full, and a turn that still runs is cut short. If the turn stays stopped, the user sends a message to continue it.
26* **Rejoins**: if Claude Desktop rejoins the engine, a turn still running goes on. It can fail to rejoin, for example after some Claude Desktop updates or after a change to the managed configuration since the engine started.
27* **Replaces**: if Claude Desktop doesn't rejoin the engine, Claude Desktop ends the engine and starts a fresh one from the transcript stored on the host. A turn that finished while the app was closed is shown in full, and a turn that still runs is cut short. If the turn stays stopped, the user sends a message to continue it.
2628 
2729While Claude Desktop 2.42304.0 or later stays open, it can start a fresh engine and tell Claude to continue when the engine ends in the middle of a turn, for example after the host restarts, even if nobody is at the device. It doesn't look first for commands that the old engine left running, and it stops after three continues or 24 hours.
2830 
from line 60
5860 
5961* **File tools under a folder restriction**: if you set [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#allowedworkspacefolders), Claude Desktop checks each file read, search, and edit before it happens. With Claude Desktop 6.6395.0 or later, on a Linux or macOS host, an engine that gets no answer within about 10 seconds checks the path itself, against the list that was in force when that engine started. A call inside your allowed folders goes on, subject to your [read-only entries](#read-only-folders-on-the-remote-host) and the session's permission mode, and a call outside them fails. In a session that runs in its own git worktree, an edit outside that worktree fails too. A running session keeps the allowed folders that were in force when its engine started, even while Claude Desktop is connected. If you change the list or its read-only entries, Claude Desktop, once it has read the change, tells each running engine that it can reach to stop checking paths itself. An engine that hasn't been told, for example while Claude Desktop is closed or disconnected, keeps checking paths itself against its old list. A session moves to the changed list only when Claude Desktop starts a new engine for it. Until then, the old engine can keep running on the host under the old list. To end it yourself, see [Files and processes on the remote machine](https://code.claude.com/docs/en/desktop#files-and-processes-on-the-remote-machine). Before Claude Desktop 6.6395.0, each call waits up to 10 minutes and then fails. That still holds in some cases, which include a Windows host, an engine that an earlier version started, and a running engine that has been told to stop checking paths itself.
6062* **Tools that your policy sets to ask**: if [`builtinToolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#builtintoolpolicy) sets a bare tool name, such as `Bash`, to `ask`, Claude Desktop is consulted before each call to that tool. A call made while Claude Desktop is disconnected waits for up to a week and then fails, and the turn pauses with it. On a Linux or macOS host, when Claude Desktop reconnects after device sleep or a dropped SSH link, the user gets the approval prompt. If the user quits and reopens Claude Desktop during the wait, the call is refused, and Claude can try it again or go on without it. A call that another check by Claude Desktop refuses first fails at that check's limit. For example, under `allowedWorkspaceFolders`, a file edit that the folder check stops fails at that check's limit, and one that it lets go on waits for the approval. Before Claude Desktop 6.6395.0, the call waits up to 10 minutes and then fails.
61* **Tools from MCP servers that run on the device**: these include your managed MCP servers (see [Where MCP servers run in a remote session](#where-mcp-servers-run-in-a-remote-session)). While Claude Desktop is disconnected, each call to one of their tools fails after about 30 seconds. The 30-second limit requires Claude Desktop 2.2553.0 or later.
63* **Tools from MCP servers that run on the device**: these include your managed MCP servers (see [Where MCP servers run in a remote session](#where-mcp-servers-run-in-a-remote-session)). While Claude Desktop is disconnected, each call to one of their tools fails after about 30 seconds.
6264 
6365For a task that depends on calls that wait or fail in this way, have the user keep the device awake and connected. For other limits, see [Limits while Desktop is disconnected](https://code.claude.com/docs/en/desktop#limits-while-desktop-is-disconnected).
6466 
from line 101
99101* **Claude finishes responding**: the [`Stop`](https://code.claude.com/docs/en/hooks#stop) hook runs
100102* **An API error, such as an authentication error, ends the turn**: the [`StopFailure`](https://code.claude.com/docs/en/hooks#stopfailure) hook runs in place of `Stop`
101103 
102The `Notification` hook doesn't run for a tool call that is waiting for Claude Desktop's own check. That check comes before any permission prompt for the call. Calls that wait for that check include these:
104The `Notification` hook doesn't run for a tool call that is waiting for Claude Desktop's own check. Calls that wait for that check include these:
103105 
104106* Each file read, search, and edit, if you set [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#allowedworkspacefolders)
105107* Each call to a tool that [`builtinToolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#builtintoolpolicy) sets to `ask` by its bare name, such as `Bash`
106108* Each call to a tool from an MCP server that runs on the device
107109 
108While Claude Desktop is disconnected, each of these calls waits up to its limit and then fails, except that a file call inside your allowed folders can go on (for the limits, and for when that exception applies, see [How a remote session works](#how-a-remote-session-works)). Claude receives a failure as the call's result, and a further call of the same kind waits again, which delays the `Stop` hook, by up to a week for a tool set to `ask`. For a task that depends on calls that wait or fail in this way, have the user keep the device awake and connected.
110While Claude Desktop is disconnected, each of these calls waits up to its limit and then fails, except that a file call inside your allowed folders can go on (for the limits, and for when that exception applies, see [How a remote session works](#how-a-remote-session-works)). Claude receives a failure as the call's result, and a further call of the same kind waits again, which delays the `Stop` hook, by up to a week for a tool set to `ask`.
109111 
110To cover every user of a host, put the hooks in [Claude Code managed settings](https://code.claude.com/docs/en/settings#settings-files) on the host instead, which on a Linux host is the file `/etc/claude-code/managed-settings.json`. If the host already has Claude Code managed settings, add the hooks to those and leave [`parentSettingsBehavior`](https://code.claude.com/docs/en/settings-reference#parentsettingsbehavior) as it is, set or unset. Changing it changes how those settings combine with the policy that Claude Desktop supplies. If the host has none yet, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create.
112To cover every user of a host, put the hooks in [Claude Code managed settings](https://code.claude.com/docs/en/settings#settings-files) on the host instead, which on a Linux host is the file `/etc/claude-code/managed-settings.json`. If the host already has Claude Code managed settings, add the hooks to those and leave [`parentSettingsBehavior`](https://code.claude.com/docs/en/settings-reference#parentsettingsbehavior) as it is, set or unset. If the host has none yet, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create.
111113 
112114> [!WARNING]
113115>
from line 174
172174* **The provider check**: Claude Desktop calls the launcher with `auth status --json` before it lists sessions, when the user selects one, and at the first message, to learn which provider Claude Code on the host uses. The launcher must pass its arguments on, and print no `{` or `}` of its own to standard output. If that call takes longer than 33 seconds or fails at the list, the user sees `Couldn't load sessions from the host.` Before Claude Desktop 7.37095.0, the limit is 15 seconds.
173175* **Options and variables**: have the launcher pass on every option and every environment variable that it receives, apart from the credential that it sets. Some of them hold the session to Amazon Bedrock, and keep the engine from using a system prompt or tool definitions that the session file records. Claude Desktop can't always tell if a launcher drops them.
174176* **The Amazon Bedrock address**: a resumed session doesn't start if the launcher points Amazon Bedrock requests at a proxy or gateway address, for example in `ANTHROPIC_BEDROCK_BASE_URL`. A new session through the same launcher starts. For the message, see [Resume is missing or fails on an SSH host](#resume-is-missing-or-fails-on-an-ssh-host).
175* **An expired credential**: if the credential that the launcher supplies has expired, for example because a company sign-in on the host has lapsed, the list and the selection can still work. The first message then fails with the card `Claude Code on <host> has no working credentials`. After signing in again on the host, the user selects **Try again**.
176177 
177178#### What Claude Desktop copies from the host
178179 
from line 223
222223* Entries do not restrict the port.
223224* A value that is not an array of strings counts as `[]`.
224225 
225Claude Desktop matches entries against the `HostName` that the device's `~/.ssh/config` gives for the entered host, or against the entered host itself when the configuration has no entry for it or can't be evaluated. An alias is allowed when it resolves to a listed host, whatever the alias is called, and is refused when it resolves to a host outside the list. In the allowlist, enter the hostnames that aliases resolve to.
226Claude Desktop matches entries against the `HostName` that the device's `~/.ssh/config` gives for the entered host, or against the entered host itself when the configuration has no entry for it or can't be evaluated. In the allowlist, enter the hostnames that aliases resolve to.
226227 
227228A session's [jump hosts](#jump-hosts-and-the-allowlist) must match an entry too. The allowlist limits which hosts Claude Desktop connects to. It doesn't limit what the device can reach over SSH from a terminal. To limit that, or wherever you need a hard boundary, use network controls.
228229 
from line 249
248249>
249250> The allowlist has one kind of entry, so users can also start a session on any host that you list, and that session receives your [inference credential](#inference-credentials-on-the-remote-host), where Claude Desktop passes one. List only jump hosts that you'd also let users run sessions on.
250251 
251Claude Desktop checks jump hosts in the `ProxyJump` that the device's `~/.ssh/config` sets for the session's host, or in a `ProxyCommand` written as `ssh -W %h:%p <host>`. If a jump host that Claude Desktop checks isn't on the allowlist when the app connects or reconnects a session, the connection fails. When the user starts a session or sends a message, they see [Your organization doesn't allow this SSH connection](#your-organization-doesn%E2%80%99t-allow-this-ssh-connection), and the card's details give that jump host's `HostName`.
252Claude Desktop checks jump hosts in the `ProxyJump` that the device's `~/.ssh/config` sets for the session's host, or in a `ProxyCommand` written as `ssh -W %h:%p <host>`. If a jump host that Claude Desktop checks isn't on the allowlist when the app connects or reconnects a session, the connection fails. When the user starts a session or sends a message, they see [Your organization doesn't allow this SSH connection](#your-organization-doesn%E2%80%99t-allow-this-ssh-connection).
252253 
253254Find the names to add in a terminal on a user's device. Skip `proxyjump` lines only on devices where the built-in client makes every connection, for example with `sshTransport` set to `builtin`. The built-in client [refuses every `ProxyJump`](#ssh-configuration-on-the-device), listed or not.
254255 
from line 272
271272 
272273* **Provides your organization's third-party configuration**: put your inference provider keys or bootstrap keys in the profile. In the same profile, set [`forceLoginOrgUUID`](https://claude.com/docs/cowork/hipaa-setup#what-each-claude-desktop-key-does) to your Claude organization's ID, so that users can't [move the device to another organization's admin console configuration](#devices-that-move-to-an-admin-console-organization) by signing in.
273274* **Limits sign-in to your admin console organization**: in the profile, set `forceLoginOrgUUID` to your Claude organization's ID. Configure your inference provider in the admin console.
274* **Keeps the device on standard Claude Desktop**: in the profile, set [`deploymentMode`](https://claude.com/docs/third-party/claude-desktop/configuration#deploymentmode) to `1p`. Users then sign in to claude.ai instead of using your inference provider.
275275 
276276With any of these profiles, the app stops reading the configuration that users applied, including its inference provider and its other settings. Before you deploy one, read [Keep a device on its managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#keep-a-device-on-its-managed-profile).
277277 
from line 280
280280On devices where users applied the configuration locally, set [the key of the same name](https://code.claude.com/docs/en/settings-reference#disabledesktoplocalsessions) in a [Claude Code managed-settings file](https://code.claude.com/docs/en/settings#settings-files) or OS policy on the device instead.
281281 
282282* If the device already has Claude Code managed settings, add the key to those and leave `parentSettingsBehavior` as it is, set or unset. Changing it changes how those settings combine with the policy that Claude Desktop supplies.
283* If the device has none yet, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create. Without `"merge"`, the new managed settings replace the policy that Claude Desktop supplies to Claude Code on the device (see [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) on the Code page). Once the device has these managed settings, an unset [`remoteFileDownloads`](#file-downloads-from-the-remote-host) means `limited` on that device.
283* If the device has none yet, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create. Without `"merge"`, the new managed settings replace the policy that Claude Desktop supplies to Claude Code on the device (see [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) on the Code page).
284284 
285285If you set the key in both Claude Desktop's configuration and Claude Code's managed settings, `true` in either one turns local Code sessions off.
286286 
from line 320
320320 
321321### Devices that move to an admin console organization
322322 
323A device that gets its SSH keys from a managed profile, a registry policy, or the profile's bootstrap server moves to the configuration from the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md) when its user signs in to an organization that uses the console and chooses that organization in the dialog that follows. The app then restarts. A device that used such an organization before its profile arrived, and whose user hasn't signed out of the app since, moves back at its first launch on Claude Desktop 2.37337.0 or later, with no new sign-in and without asking the user, even if the stored sign-in has expired. To prevent that, add `disableDeploymentModeChooser` to the profile before devices update. `forceLoginOrgUUID` prevents it only for organizations it leaves out. Before Claude Desktop 2.37337.0, a device with such a profile ignores the admin console.
323A device that gets its SSH keys from a managed profile, a registry policy, or the profile's bootstrap server moves to the configuration from the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md) when its user signs in to an organization that uses the console and chooses that organization in the dialog that follows. The app then restarts. A device that used such an organization before its profile arrived, and whose user hasn't signed out of the app since, moves back at its first launch on Claude Desktop 2.37337.0 or later, with no new sign-in and without asking the user, even if the stored sign-in has expired. To prevent that, add `disableDeploymentModeChooser` to the profile before devices update. `forceLoginOrgUUID` prevents it only for organizations it leaves out.
324324 
325325After the move, `sshHostAllowlist`, `sshConfigs`, `disableDesktopLocalSessions`, `sshTransport`, `sshClientPath`, and `sshHostSandboxUnavailable` from the profile, or from the profile's bootstrap server, don't apply, even where the console leaves them unset. For the profile's other settings, see [Which settings apply on a device with a managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#which-settings-apply-on-a-device-with-a-managed-profile).
326326 
327* **Which hosts**: the console's `sshHostAllowlist` applies. If the console leaves the key unset (**Not set**), or the app hasn't yet downloaded the console's configuration at this launch (the copy a device keeps of the last download holds no lists), `sshHostAllowlist` from Claude Code's managed settings on the device applies. With neither, SSH remote sessions are off.
327* **Which hosts**: the console's `sshHostAllowlist` applies. If the console leaves the key unset (**Not set**), or the app hasn't yet downloaded the console's configuration at this launch, `sshHostAllowlist` from Claude Code's managed settings on the device applies. With neither, SSH remote sessions are off.
328328* **Which SSH client**: the console's `sshTransport` and `sshClientPath` apply. On a Windows device, a client that the console's `sshClientPath` names makes the connection only if it is Microsoft's OpenSSH. With `system-openssh`, SSH connections fail under any other client. A key that the console leaves unset takes its default under [Host requirements](#host-requirements). Until the app has downloaded the console's configuration at a launch, both keys count as unset, so no client is pinned. Until then the built-in client makes the connection on a Windows device, even where the console sets `system-openssh`. The device's OpenSSH client makes it on a macOS or Linux device, even where the console sets `builtin`.
329329* **Connections and local sessions**: the console's `sshConfigs` and `disableDesktopLocalSessions` apply, together with those in Claude Code's managed settings on the device. Until the app has downloaded the console's configuration at a launch, the console's connections are missing, and local Code sessions stay off if the last download turned them off.
330330 
331331To prevent or limit the move, set one of these keys in the profile itself:
332332 
333* **Keep the device on its profile**: set [`deploymentMode`](https://claude.com/docs/third-party/claude-desktop/configuration#deploymentmode) to `3p`. The app ignores the admin console, and the sign-in screen doesn't offer **Or sign in with Claude.ai**. A device that has already moved returns to its profile at its next launch. For devices on versions that don't read `deploymentMode`, also set `disableDeploymentModeChooser` to `true`, as described under [Restrict a device to one deployment mode](https://claude.com/docs/third-party/claude-desktop/mdm.md#restrict-a-device-to-one-deployment-mode).
334* **Allow only your organization**: set [`forceLoginOrgUUID`](https://claude.com/docs/cowork/hipaa-setup#what-each-claude-desktop-key-does) to your organization ID, and set the SSH keys you rely on in the console too. The key also limits standard Claude Desktop sign-in on the device to your organization. If users click **Sign in with Claude Console**, also add the ID of each Claude Console organization that you allow, as described under [Keep a device on its managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#keep-a-device-on-its-managed-profile).
333* **Keep the device on its profile**: set [`deploymentMode`](https://claude.com/docs/third-party/claude-desktop/configuration#deploymentmode) to `3p`. The app ignores the admin console. A device that has already moved returns to its profile at its next launch. For devices on versions that don't read `deploymentMode`, also set `disableDeploymentModeChooser` to `true`, as described under [Restrict a device to one deployment mode](https://claude.com/docs/third-party/claude-desktop/mdm.md#restrict-a-device-to-one-deployment-mode).
334* **Allow only your organization**: set [`forceLoginOrgUUID`](https://claude.com/docs/cowork/hipaa-setup#what-each-claude-desktop-key-does) to your organization ID, and set the SSH keys you rely on in the console too.
335335 
336336Before you add one of these keys to a profile that sets only [app-behavior keys](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence), such as `disableAutoUpdates`, read the warning under [Keep a device on its managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#keep-a-device-on-its-managed-profile).
337337 
from line 378
378378Claude Desktop reads and applies the value by these rules:
379379 
380380* **Spelling**: Claude Desktop ignores letter case. It treats a value that isn't `limited`, `all`, `none`, or empty as `none`, so a mistyped `all` turns downloads off. An empty value counts as unset. On Windows, a mistyped value in a machine policy also makes Claude Desktop refuse WSL sessions, even where machine policy sets [`disableWslSessions`](https://claude.com/docs/third-party/claude-desktop/configuration#disablewslsessions) to `false`.
381* **When a change takes effect**: an open app applies a new value from device management, the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md), or a [bootstrap server](https://claude.com/docs/third-party/claude-desktop/bootstrap.md) without a relaunch, once a [re-check](https://claude.com/docs/third-party/claude-desktop/configuration-format.md#when-a-configuration-change-on-a-device-takes-effect) reads it and a second check about 30 seconds later confirms it. A value set in the [in-app configuration window](https://claude.com/docs/third-party/claude-desktop/in-app-configuration.md) applies no later than the relaunch that **Apply Changes** asks for.
381* **When a change takes effect**: an open app applies a new value from device management, the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md), or a [bootstrap server](https://claude.com/docs/third-party/claude-desktop/bootstrap.md) without a relaunch, once a [re-check](https://claude.com/docs/third-party/claude-desktop/configuration-format.md#when-a-configuration-change-on-a-device-takes-effect) reads it and a second check about 30 seconds later confirms it.
382382* **An unset key in an open app**: the app goes from `all` to `limited` at the next download after a profile, a policy, or Claude Code's managed settings appear on the device. After you remove every sign of an administrator from the device, the app keeps `limited` until its next launch.
383383 
384384You can set the key in these places:
from line 386
386386* **Device management**: users can't edit a machine-scoped profile or policy. For when its value applies, see [Deploy remoteFileDownloads through device management](#deploy-remotefiledownloads-through-device-management).
387387* **Enterprise Admin Console**: the console's value applies unless the device has a profile or policy of only [app-behavior keys](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence) that holds this key. On a Windows device with no machine policy (`HKLM`), a per-user policy (`HKCU`) counts as such a policy. Whoever can write to `HKCU` can then set `all` over the console's `none` (see **A machine policy on Windows** under [Deploy remoteFileDownloads through device management](#deploy-remotefiledownloads-through-device-management)).
388388* **Bootstrap response**: put the key inside the `codeSurface` object.
389* **In-app configuration window**: the key appears in the **Code surface** section while Code is enabled, in Claude Desktop 5.11492.0 or later. The user can change a value that is set there.
389* **In-app configuration window**: the key appears in the **Code surface** section while Code is enabled, in Claude Desktop 5.11492.0 or later.
390390 
391391### Deploy remoteFileDownloads through device management
392392 
from line 418
418418 
419419When the configured credential is a refused kind, the session fails at session start unless a launcher starts Claude Code. The card is [SSH sessions can't use your model provider settings](#ssh-sessions-can%E2%80%99t-use-your-model-provider-settings). Where `claudeCodeProcessWrapperEnabled` is on and a Linux or macOS host names no launcher, the card is `Your organization's launcher isn't set up on <host>` instead.
420420 
421When a credential that Claude Desktop passed expires during a turn, Claude Desktop obtains a new one on the device, by re-running a [credential helper](https://claude.com/docs/third-party/claude-desktop/credential-helper.md) or using a sign-in's refresh token, and sends it over the SSH connection. It can do so only while it is connected (see [Keep a long turn running while Claude Desktop is disconnected](#keep-a-long-turn-running-while-claude-desktop-is-disconnected)).
422 
423421Where the host's [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) starts Claude Code, Claude Desktop passes no inference credential and refuses no credential kind. Claude Code uses the credential that the launcher or the SSH account's own environment sets, or, on Google Cloud's Agent Platform, the account's application default credentials.
424422 
425423The host needs its own network route to the inference endpoint and must trust the endpoint's certificate. Claude Desktop passes the endpoint address to the remote engine but not the device's proxy settings, CA certificates, or the `AWS_*` and `GOOGLE_*` variables in the user's shell. A gateway at `localhost` on the device is refused for remote sessions, because the host cannot reach it.
from line 428
430428 
431429With a [named profile](https://claude.com/docs/third-party/claude-desktop/bedrock.md#named-profile), the device's AWS credentials stay on the device. Claude Desktop sends the host the profile's name and the folder that holds the AWS files, and nothing else from the profile. The engine signs in to AWS with the profile of that name on the host, in the AWS Region that your Claude Desktop configuration sets. Your `inferenceCustomHeaders` and your collector's endpoint and headers still go to the host. Session titles, Cowork, and the connection test still use the profile on the device.
432430 
433This behavior has no configuration key of its own. It applies to every Linux or macOS host that `sshHostAllowlist` allows, and sessions start if the host has the files set up as the steps in this section describe. A profile of that name that is already on a host is used as it is, so check existing hosts before you update Claude Desktop. Windows hosts aren't supported. You can keep new sessions from using the host's profile in three ways:
431This behavior has no configuration key of its own. It applies to every Linux or macOS host that `sshHostAllowlist` allows. A profile of that name that is already on a host is used as it is, so check existing hosts before you update Claude Desktop. You can keep new sessions from using the host's profile in three ways:
434432 
435433* **On one host**: keep the host's name off `sshHostAllowlist` and outside its wildcards, which refuses new SSH sessions and connections under that name (see [Enable SSH remote sessions](#enable-ssh-remote-sessions)).
436434* **On a host that names a launcher**: turn `claudeCodeProcessWrapperEnabled` on, and the launcher starts Claude Code there, as the last paragraph of this section describes.
from line 440
442440 
4434411. **Add the profile.** Create it on the host, in `~/.aws` or in the folder that `inferenceBedrockAwsDir` names: a `config` file, a `credentials` file, or both. Claude Desktop copies nothing there. Claude Code runs on the host as the user and must be able to read the files. Where security software on the host keeps it out of `~/.aws`, the engine can't sign in: agree an exception or another folder with your security team. Keep a single sign-on profile in `~/.aws`, on the host and on the device: AWS keeps its token cache in `~/.aws/sso/cache`, whichever folder holds the profile. Give the profile the name that you set in [`inferenceBedrockProfile`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockprofile). Set that key: with no name, and `~/.aws` as the folder, SSH sessions are refused unless a launcher starts Claude Code. With another folder and no name, the engine uses the profile `default`.
4444422. **Limit its permissions.** Give the profile access to Amazon Bedrock only. The `aws` commands that Claude runs on the host use the same profile. The files on the host decide which AWS account receives the engine's requests and which `credential_process` program runs, outside the sandbox.
4453. **Keep the files separate.** Use regular files, not links, in a folder of their own directly under the home directory, such as `~/.aws`, that holds no project files. Only the user who signs in should be able to read or write the files and their folder. Claude's file-editing tools are blocked for everything under that folder. Where [Claude Code's sandbox](#sandbox-status-on-the-remote-host) runs, it also keeps sandboxed shell commands from writing to the `config` and `credentials` files. Don't rely on that in a session that can write to their folder, such as one opened in the home directory. Your policy includes the sandbox where you set `allowedWorkspaceFolders`. Without that key, the sandbox can be off (see [Applied as managed policy](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy)). The block is Claude Code's own check, not a file permission: Claude can read these files, and other programs that run as the user can change them. Keep sessions from starting in the home directory itself with [`allowedWorkspaceFolders`](#managed-configuration-on-the-remote-host), and prefer credentials that expire. If the profile names a `credential_process` program, the safest place for the program is one that the user can't write to, because Claude Code runs the program outside the sandbox. At the least, keep the program where no other user can change it, and outside the folder the session was opened in, every folder in `allowedWorkspaceFolders`, and the [other places](https://code.claude.com/docs/en/sandboxing#filesystem-isolation) where the sandbox lets commands write.
4433. **Keep the files separate.** Use regular files, not links, in a folder of their own directly under the home directory, such as `~/.aws`, that holds no project files. Only the user who signs in should be able to read or write the files and their folder. Claude's file-editing tools are blocked for everything under that folder. Where [Claude Code's sandbox](#sandbox-status-on-the-remote-host) runs, it also keeps sandboxed shell commands from writing to the `config` and `credentials` files. Don't rely on that in a session that can write to their folder, such as one opened in the home directory. The block is Claude Code's own check, not a file permission: Claude can read these files, and other programs that run as the user can change them. Keep sessions from starting in the home directory itself with [`allowedWorkspaceFolders`](#managed-configuration-on-the-remote-host), and prefer credentials that expire. If the profile names a `credential_process` program, the safest place for the program is one that the user can't write to, because Claude Code runs the program outside the sandbox. At the least, keep the program where no other user can change it, and outside the folder the session was opened in, every folder in `allowedWorkspaceFolders`, and the [other places](https://code.claude.com/docs/en/sandboxing#filesystem-isolation) where the sandbox lets commands write.
4464444. **Sign in, if the profile needs it.** The user signs in to AWS from a terminal on the host, which for single sign-on needs version 2 of the AWS CLI there. Claude Desktop can't sign in on the host or renew the sign-in there. When it expires, turns fail until the user signs in on the host again.
447445 
448446The engine signs in only through the named profile. An instance role on the host isn't enough by itself: the profile must name its own source of credentials. The host must also reach the AWS hosts that the profile signs in through (see [Inference provider](https://claude.com/docs/third-party/claude-desktop/telemetry.md#inference-provider)). On a host that reaches AWS only through a proxy, a profile that assumes a role doesn't sign in, even where a terminal on that host does.
449447 
450[`inferenceBedrockAwsDir`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockawsdir) names the folder on the device and on the host alike, so the device's files must be there too. Use a folder under the user's home directory, not the home directory itself, for example `~/corp-aws`, and put each machine's files in it. With a folder anywhere else, SSH sessions are refused unless a launcher on the host starts Claude Code. Keep a single sign-on profile in `~/.aws`: `aws sso login` saves its token in `~/.aws/sso/cache` whichever folder holds the profile, and Claude Code looks for it first beside the profile's files. With the profile in another folder, the engine doesn't sign in on a host that reaches AWS only through a proxy. Each folder name in the files' path on the host, the home directory's included, can hold only letters, digits, and `. _ @ + = : ~ -`. With a space or another symbol in one, the session is refused, and the details of the card `Couldn't start Claude Code on <host>` say so.
448[`inferenceBedrockAwsDir`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockawsdir) names the folder on the device and on the host alike, so the device's files must be there too. Use a folder under the user's home directory, not the home directory itself, for example `~/corp-aws`. Keep a single sign-on profile in `~/.aws`: `aws sso login` saves its token in `~/.aws/sso/cache` whichever folder holds the profile, and Claude Code looks for it first beside the profile's files. With the profile in another folder, the engine doesn't sign in on a host that reaches AWS only through a proxy. Each folder name in the files' path on the host, the home directory's included, can hold only letters, digits, and `. _ @ + = : ~ -`. With a space or another symbol in one, the session is refused, and the details of the card `Couldn't start Claude Code on <host>` say so.
451449 
452450With [`claudeCodeProcessWrapperEnabled`](https://claude.com/docs/third-party/claude-desktop/code#start-code-sessions-through-a-corporate-launcher) on, a launcher that the host names starts Claude Code. Where the key is off or unset, or Claude Desktop finds no launcher on the host, a new session signs in with the host's profile. To keep sessions on a launcher, name it on every host that `sshHostAllowlist` allows, and set the key in the device's [managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#devices-with-a-managed-profile) so that users can't turn it off. To have sessions refused where no launcher is found, also set `inferenceBedrockAwsDir` to a folder outside the user's home directory, as under **For the whole deployment**. Claude Desktop learns whether a host names a launcher, and which, from the host itself, as the account that signed in, so it can't make sure that a host with no launcher really has none, or that the launcher is yours. Keeping Claude Code from running without your launcher stays the work of your own controls on the host.
453451 
from line 457
459457 
460458> [!NOTE]
461459>
462> Where the host's [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) starts Claude Code, or the engine signs in with the host's own AWS profile (see [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile)), Claude Desktop passes no inference credential, so it renews none. How long a turn can keep making model requests then depends on the credential that the launcher or the SSH account sets, or on the credentials that the host's profile supplies. See [Inference credentials on the remote host](#inference-credentials-on-the-remote-host).
460> Where the host's [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) starts Claude Code, or the engine signs in with the host's own AWS profile (see [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile)), Claude Desktop passes no inference credential, so it renews none. How long a turn can keep making model requests then depends on the credential that the launcher or the SSH account sets, or on the credentials that the host's profile supplies.
463461 
464462For a turn that may outlast the credential, have the user keep the device awake and connected. While Claude Desktop is connected, it renews an expired credential when the provider or gateway answers with HTTP 401 (on Amazon Bedrock, with its expired-token 403; from your LLM gateway, with 401 or 403), and the engine retries the request. Check what the renewal needs in your deployment:
465463 
from line 467
469467 
470468To let a turn finish with the device asleep or Claude Desktop closed, the engine needs a credential that outlives the turn. This goes against the warning under [Inference credentials on the remote host](#inference-credentials-on-the-remote-host), which advises short-lived tokens over a long-lived key. You can get such a credential in these ways:
471469 
472* **A credential helper that issues a longer-lived token**: where your provider or gateway allows it, have the helper issue a token that stays valid for the longest turn that you want to allow, plus at least the [`inferenceCredentialHelperTtlSec`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencecredentialhelperttlsec) value, which is in seconds. The added time covers a token that was already in Claude Desktop's cache when the turn started. That key sets how long Claude Desktop caches the helper's output on the device, not how long the token stays valid. Prefer this option to a static key, because the token still expires.
470* **A credential helper that issues a longer-lived token**: where your provider or gateway allows it, have the helper issue a token that stays valid for the longest turn that you want to allow, plus at least the [`inferenceCredentialHelperTtlSec`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencecredentialhelperttlsec) value, which is in seconds. That key sets how long Claude Desktop caches the helper's output on the device, not how long the token stays valid. Prefer this option to a static key, because the token still expires.
473471* **A static API key or bearer token**: for a provider where the table under [Inference credentials on the remote host](#inference-credentials-on-the-remote-host) lists one. It works until your provider or gateway stops accepting it, and everyone who receives the same configuration uses the same one, so revoking it cuts off model requests for all of them.
474472* **A longer token lifetime at the issuer**: with single sign-on or another in-app sign-in through your identity provider or cloud provider, only that issuer can lengthen the token's lifetime. Claude Desktop gets a new token when the old one is about to expire or has been refused, so a turn can start on a token that is near its end. A longer lifetime makes that less likely but doesn't rule it out. For [Workforce Identity sign-in](https://claude.com/docs/third-party/claude-desktop/vertex.md#in-app-workforce-identity-sign-in), the token lasts for the workforce pool's session duration in Google Cloud (1 hour by default).
475473 
from line 474
476474Before each turn that the user starts, Claude Desktop [checks the helper's token](https://claude.com/docs/third-party/claude-desktop/credential-helper.md#timeouts-and-caching) and renews one whose cache time is nearly over. Where that check doesn't apply, the engine keeps the token that it holds until your provider or gateway refuses it. A turn can then start on a token that is near its end, whatever time you add, in cases such as these:
477475 
478476* **The `inferenceCredentialHelperTtlSec` value is 120 seconds or less**: Claude Desktop skips the check. Keep the value above 120.
479* **The user has quit and reopened Claude Desktop since the engine started**: a restart of the app for an update has the same effect. For an engine that Claude Desktop rejoins, the check goes by the token that Claude Desktop held when it rejoined, not by the older one that the engine holds. Have the user start the long turn in a new session. Its engine starts on a token no older than the `inferenceCredentialHelperTtlSec` value.
477* **The user has quit and reopened Claude Desktop since the engine started**: a restart of the app for an update has the same effect. Have the user start the long turn in a new session.
480478* **Claude starts the turn by itself**: for example, when a background command finishes. Allow for the time from the user's last message to the end of the last such turn.
481479 
482480> [!WARNING]
from line 553
555553 
556554### Symbolic links in allowed workspace folders on the remote host
557555 
558If users reach a folder on the host through a symbolic link, check where the link leads before you list either one in [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#allowedworkspacefolders). A link that you didn't create can lead to a folder that you don't want to allow. Claude Desktop leaves out some listed links, such as a link inside another listed folder, and refuses to start a session in a folder that only such a link allows.
556If users reach a folder on the host through a symbolic link, check where the link leads before you list either one in [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#allowedworkspacefolders). Claude Desktop leaves out some listed links, such as a link inside another listed folder, and refuses to start a session in a folder that only such a link allows.
559557 
560558Choose what to list by the folder that the link leads to:
561559 
from line 681
683681Expect fewer reports than for a sandbox from your policy:
684682 
685683* **The session**: it continues, and shell commands run outside the sandbox. To keep Claude Code from starting instead, set [`sandbox.failIfUnavailable`](https://code.claude.com/docs/en/sandboxing#enforce-sandboxing-with-managed-settings) to `true` in the same managed settings.
686* **Reasons**: only `cannot_start` and `unsupported`, with the same messages, `/status` value, and event as under [Sandbox status on the remote host](#sandbox-status-on-the-remote-host). The table's rows for those two apply here too. Claude Desktop never reports `overridden` or `unknown` here.
684* **Reasons**: only `cannot_start` and `unsupported`, with the same messages, `/status` value, and event as under [Sandbox status on the remote host](#sandbox-status-on-the-remote-host).
687685* **A host that has the packages**: it can still report `cannot_start`, for example Ubuntu 24.04 without an AppArmor profile for bubblewrap. [Set up Linux and WSL2](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2) covers the profile too.
688686* **`/status`**: the **Sandbox** row appears only after Claude Desktop has reported that sandbox as not running. After `cannot_start`, the row can stay for the rest of that session, so check a fix in a new session.
689687* **No report**: don't take it as proof that the sandbox runs. To confirm, have the user 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).
from line 709
711709 
712710> [!NOTE]
713711>
714> On a device where the local configuration file governs, Claude Desktop 4.16336.0 or later starts the message with `The policy from your inference configuration`, and doesn't mention an admin. The message after a fix starts with the same words.
712> On a device where the local configuration file governs, Claude Desktop 4.16336.0 or later starts the message with `The policy from your inference configuration`, and doesn't mention an admin.
715713 
716A 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.
717 
718714To fix the host, set `parentSettingsBehavior` to `"merge"` in the host's Claude Code managed settings, which otherwise replace your policy. See [Managed configuration on the remote host](#managed-configuration-on-the-remote-host). Claude Desktop asks again when Claude Code starts, when Claude Desktop rejoins a running Claude Code process, and after each turn. Once the check passes again, a session that still shows the message also shows "Your organization's policy applies on `<host>` again."
719715 
720716With [`otlpEndpoint`](https://claude.com/docs/third-party/claude-desktop/configuration#otlpendpoint) set, your collector receives a `desktop_ssh_policy_check_failed` event under the `service.name` value `claude-desktop` when the check fails, unless [`otlpDesktopLogLevel`](https://claude.com/docs/third-party/claude-desktop/configuration#otlpdesktoploglevel) is `off`. A session can send the event more than once, for example after Claude Code or Claude Desktop restarts, so count distinct `session_id` values rather than events. No event marks the recovery. The event carries these attributes:
from line 731
735731 
736732## Limit how long engines run with no connection
737733 
738On a Linux or macOS host, a remote server and its engines stop after 30 days with no connection from Claude Desktop. On a Linux host, you can set a shorter limit as root, as a number of minutes in a file. The limit applies to every SSH user of the host. Requires Claude Desktop 6.6395.0 or later on each device that connects, because a remote server from an earlier version ignores the file.
734On a Linux or macOS host, a remote server and its engines stop after 30 days with no connection from Claude Desktop. On a Linux host, you can set a shorter limit as root, as a number of minutes in a file. The limit applies to every SSH user of the host. Requires Claude Desktop 6.6395.0 or later on each device that connects.
739735 
740736At the limit, the remote server stops and ends its engines and nearly all of what they started, such as a `tmux` server or a `nohup` job from a shell command. The limit doesn't end Claude Desktop's terminal tabs or what the user started from a login outside Claude Desktop. A remote server that is killed outright, for example when the host runs out of memory, applies no limit from then on. An idle engine under it exits within seconds, and an engine in the middle of a turn runs until that turn ends.
741737 
from line 768
772768 
773769While the file can't be used, a remote server that had already read a number from it keeps applying that number. One that had read none applies only the 30 days.
774770 
775Where SSH logins start in a container, write the file in that container's own `/etc`. A remote server in the container reads the container's own `/etc`, so a file on the host doesn't set a limit there.
771Where SSH logins start in a container, write the file in that container's own `/etc`.
776772 
777773To confirm the limit, connect once from Claude Desktop and wait a minute. Then run this command as the SSH user in a terminal on the host:
778774 
from line 818
822818The host needs the following.
823819 
824820* Linux or macOS on x86\_64 or arm64, or Windows on x64 or arm64.
825* On a Linux host, glibc 2.17 or later, or musl. The Claude Code engine is a single executable, and its glibc build links only against glibc's own libraries. Version 2.17 is the oldest glibc that the glibc build can load, and Claude Code's [system requirements](https://code.claude.com/docs/en/setup#system-requirements) still apply. To see the host's C library and its version, run `ldd --version` on the host. For a musl host, see [Alpine Linux and musl-based distributions](https://code.claude.com/docs/en/setup#alpine-linux-and-musl-based-distributions).
821* On a Linux host, glibc 2.17 or later, or musl. The Claude Code engine is a single executable, and its glibc build links only against glibc's own libraries. Claude Code's [system requirements](https://code.claude.com/docs/en/setup#system-requirements) still apply. To see the host's C library and its version, run `ldd --version` on the host. For a musl host, see [Alpine Linux and musl-based distributions](https://code.claude.com/docs/en/setup#alpine-linux-and-musl-based-distributions).
826822* An SSH server. On Windows, Microsoft's OpenSSH Server; with other SSH servers, the engine does not survive a dropped connection.
827823* The SSH server's SFTP subsystem. For a Linux or macOS host that lacks it, see [Hosts without SFTP](#hosts-without-sftp).
828* If devices connect with Claude Desktop's built-in SSH client, an SSH server that accepts several sessions on one connection. Before Claude Desktop 4.16336.0, that client is the default on Windows devices, and in later versions it still connects to hosts already in use. The built-in client can't connect where the server's `sshd_config` sets `MaxSessions 1`. Raise that limit, for example to OpenSSH's default of 10, or see [Hosts that allow one session per connection](#hosts-that-allow-one-session-per-connection).
824* If devices connect with Claude Desktop's built-in SSH client, an SSH server that accepts several sessions on one connection. The built-in client can't connect where the server's `sshd_config` sets `MaxSessions 1`. Raise that limit, for example to OpenSSH's default of 10, or see [Hosts that allow one session per connection](#hosts-that-allow-one-session-per-connection).
829825* The server doesn't need to allow TCP, Unix socket, agent, or X11 forwarding. A `ProxyJump` host must allow TCP forwarding to the SSH port of the session's host.
830826* A POSIX shell, or PowerShell on Windows.
831827* `git` on the path, for git features.
832828* On a Linux host, `bubblewrap` and `socat`, if your policy has a [sandbox](#sandbox-status-on-the-remote-host) or the host's managed settings [turn one on](#sandbox-from-the-host%E2%80%99s-managed-settings). Some Linux images include neither. If either is missing, Claude Code's sandbox can't start, and shell commands run outside it unless a setting [requires the sandbox](#a-required-sandbox-isn%E2%80%99t-available). To install them, see [Set up Linux and WSL2](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2). On a host that doesn't allow user namespaces, or where your users' logins are mapped to a confined SELinux user, installing both can make every sandboxed shell command fail, so [check the host first](https://claude.com/docs/third-party/claude-desktop/code.md#user-namespaces).
833* A home directory that the SSH user can write to and run programs from, with about 1 GB of disk space for the three Claude Code versions the app keeps and a fourth while an update installs. A home directory mounted `noexec` doesn't work. Where [`sshHostProgramsPreinstalled`](#preinstall-the-remote-server-and-claude-code-on-ssh-hosts) is on, the home directory must still be writable, but Claude Desktop puts neither the remote server nor Claude Code there.
829* A home directory that the SSH user can write to and run programs from, with about 1 GB of disk space. A home directory mounted `noexec` doesn't work. Where [`sshHostProgramsPreinstalled`](#preinstall-the-remote-server-and-claude-code-on-ssh-hosts) is on, the home directory must still be writable, but Claude Desktop puts neither the remote server nor Claude Code there.
834830 
835831The device needs the OpenSSH client (`ssh` and `ssh-keygen`). Claude Desktop runs the first `ssh` on the user's `PATH`. On macOS and Linux, while `sshClientPath` is unset, Claude Desktop can also run `/usr/bin/ssh`. On Windows, the first `ssh` is the first `ssh.exe`, and a `.bat`, `.cmd`, or `.ps1` wrapper named `ssh` isn't run. For the `ssh` that carries the connection on a Windows device, see [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client).
836832 
from line 835
839835* **Companion tools**: Claude Desktop takes `ssh-keygen` and `ssh-add` from the same directory when they exist there. Otherwise it takes `ssh-keygen` from the user's `PATH`, and `ssh-add` from the operating system's own OpenSSH or else the `PATH`.
840836* **macOS and Linux devices**: the program can be a wrapper script that runs an OpenSSH client. For what Claude Desktop 4.16336.0 or later needs of a wrapper, see the paragraph on wrapper scripts below this list.
841837* **Windows devices**: the program must be an `.exe` file, not a `.cmd`, `.bat`, or `.ps1` script. Stricter rules apply to its version and folder. See **Client version** under [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client), and [Use the OpenSSH client of Git for Windows](#use-the-openssh-client-of-git-for-windows). For a value that starts with `%LOCALAPPDATA%\`, see [Use an OpenSSH client installed per user](#use-an-openssh-client-installed-per-user).
842* **A program that can't be used**: if the pinned program is missing, or on macOS and Linux can't be run, SSH connections fail with an error that shows the configured path. Where the OpenSSH client makes the connection, they also fail if the program is older than OpenSSH 7.6. Claude Desktop never runs another `ssh` program in its place. On Windows, if the program exists but can't be started, Claude Desktop's built-in client can still make the connection.
843* **Every source of settings**: a bootstrap server or the Enterprise Admin Console that leaves `sshClientPath` out cancels the value that device management sets. A bootstrap server does so once its response has loaded at a launch, and the console as soon as the app starts. Claude Desktop then chooses the `ssh` program as if you had pinned nothing. Set the key everywhere you manage settings. From a bootstrap server, return each platform's path only to devices of that platform.
838* **A program that can't be used**: if the pinned program is missing, or on macOS and Linux can't be run, SSH connections fail with an error that shows the configured path. Claude Desktop never runs another `ssh` program in its place. On Windows, if the program exists but can't be started, Claude Desktop's built-in client can still make the connection.
839* **Every source of settings**: a bootstrap server or the Enterprise Admin Console that leaves `sshClientPath` out cancels the value that device management sets. Claude Desktop then chooses the `ssh` program as if you had pinned nothing. Set the key everywhere you manage settings. From a bootstrap server, return each platform's path only to devices of that platform.
844840 
845841With Claude Desktop 4.16336.0 or later, on macOS and Linux `ssh` shows its prompts through `claude-ssh-askpass`, a helper that ships with the app. If you allow programs by list, allow Claude Desktop and `ssh` to start it:
846842 
from line 843
847843* **macOS**: allow `Claude.app/Contents/Helpers/claude-ssh-askpass`, which is signed with the app.
848844* **Linux**: allow `claude-ssh-askpass` in the `resources` folder of the app's installation.
849845 
850Claude Desktop runs the helper as a test before a connection that can prompt, and `ssh` runs it for each prompt. Without the helper, the app also can't ask the user to trust a host key that isn't on record, and `ssh` refuses that host.
846Without the helper, the app also can't ask the user to trust a host key that isn't on record, and `ssh` refuses that host.
851847 
852848A wrapper script that stands in for `ssh`, whether `sshClientPath` names it or it comes first on the `PATH`, must leave `ssh`'s standard error untouched. If it sends that stream through a pipe, a file, or a terminal of its own, sign-ins that need a prompt fail. See [Claude's SSH sign-in helper isn't working on this computer](#claude%E2%80%99s-ssh-sign-in-helper-isn%E2%80%99t-working-on-this-computer).
853849 
from line 864
868864 
869865The app also uses the built-in client in these cases, and on Windows in the cases under [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client):
870866 
871* **The device can't start the OpenSSH client**: while `sshTransport` is unset or `auto` and `sshClientPath` is unset, the app uses the built-in client for every connection until Claude Desktop restarts. If the device can't start `ssh-keygen` either, connections fail at the host key check (see [SSH host key verification failed](#ssh-host-key-verification-failed)). Requires Claude Desktop 2.7032.0 or later.
867* **The device can't start the OpenSSH client**: while `sshTransport` is unset or `auto` and `sshClientPath` is unset, the app uses the built-in client for every connection until Claude Desktop restarts.
872868* **Claude Desktop is installed from the Microsoft Store**: the built-in client makes the connection unless `sshTransport` is `system-openssh`. With `system-openssh`, the device's OpenSSH client makes the connection, but the app can't show its prompts for a password, a one-time code, or a key passphrase, or its question about a host key that isn't on record. Use a sign-in method that needs no prompt, such as a key held by the SSH agent, and have users connect to each host once from a terminal before adding it in the app, so that the host's key is in the user's `known_hosts` file.
873869 
874870Claude Desktop and the Claude Code engine write the following into the SSH user's home directory on the host. Each user who connects gets their own copy.
from line 886
890886Each side of a remote session needs its own network access.
891887 
892888* Devices installed with the regular installer must reach `downloads.claude.ai`: Claude Desktop downloads the remote server there and uploads it to the host. Devices installed with the [offline installer](https://claude.com/docs/third-party/claude-desktop/installation.md#offline-installation) don't: it bundles the remote server and the Claude Code engine for Linux x64 and arm64 hosts, and Claude Desktop uploads both. Hosts on other platforms still need the download, so an offline-installed device that cannot reach `downloads.claude.ai` fails the session with a message saying the installer doesn't include remote components for that platform.
893* The host must reach your inference endpoint and, if configured, your OTLP collector, plus whatever the user's own work needs. With the regular installer, it downloads the Claude Code engine from `downloads.claude.ai` when it can; when that fails, Claude Desktop downloads the engine on the device and uploads it. Unless you disabled telemetry, the engine on the host also reports to the same Anthropic hosts as a local Code session (see [Telemetry and egress](https://claude.com/docs/third-party/claude-desktop/telemetry.md)). Blocking them does not affect the session.
889* The host must reach your inference endpoint and, if configured, your OTLP collector. With the regular installer, it downloads the Claude Code engine from `downloads.claude.ai` when it can; when that fails, Claude Desktop downloads the engine on the device and uploads it. Unless you disabled telemetry, the engine on the host also reports to the same Anthropic hosts as a local Code session (see [Telemetry and egress](https://claude.com/docs/third-party/claude-desktop/telemetry.md)). Blocking them does not affect the session.
894890 
895891### Hosts without SFTP
896892 
897A remote session can start on a Linux or macOS host where SFTP is turned off or doesn't work. Claude Desktop then places its own setup files on the host with shell commands instead of SFTP. Before Claude Desktop 3.1623.0, setup fails on such a host.
893A remote session can start on a Linux or macOS host where SFTP is turned off or doesn't work. Claude Desktop then places its own setup files on the host with shell commands instead of SFTP.
898894 
899These features need SFTP, so they are off in that session. Users can keep working without them. With Claude Desktop 4.23118.0 or later, some connections from Windows devices don't use the host's SFTP service for these features. On those connections they can go on working for up to seven days after SFTP is turned off or stops working, or longer on a connection that stays open.
895These features need SFTP, so they are off in that session. With Claude Desktop 4.23118.0 or later, some connections from Windows devices don't use the host's SFTP service for these features. On those connections they can go on working for up to seven days after SFTP is turned off or stops working, or longer on a connection that stays open.
900896 
901897* Image and document previews
902898* File attachments
from line 903
907903A session without SFTP needs at least the following. Where one is missing, setup fails (see [Setup on the host fails after SSH connects](#setup-on-the-host-fails-after-ssh-connects)).
908904 
909905* **Version**: Claude Desktop 3.1623.0 or later on the device.
910* **Client**: the device's OpenSSH client makes the connection. The built-in client needs SFTP. Before Claude Desktop 4.16336.0 it is the default on Windows devices, and in Claude Desktop 4.16336.0 or later it still makes the connection in some cases. To have the device's OpenSSH client make every connection, see [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client).
906* **Client**: the device's OpenSSH client makes the connection. The built-in client needs SFTP. To have the device's OpenSSH client make every connection, see [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client).
911907* **Shell**: a POSIX shell on the host, with `sh` and the standard Unix tools such as `ls`, `cat`, and `rm`.
912908* **Base64 decoder**: `base64` or `openssl` on the host.
913909* **SHA-256 tool**: `sha256sum`, `shasum`, or `openssl` on the host.
from line 926
930926 
931927Connecting to a host with this limit changes what the SSH server's log shows and how often devices sign in:
932928 
933* **Refused sessions**: when a macOS or Linux device first connects to the host, the SSH server's log shows a sign-in followed by `no more sessions`. Claude Desktop remembers the limit for 7 days at a time: at the device's next connection after that, the log shows the sign-in and the refusal again. The refusal is how Claude Desktop learns of the limit, so you don't need to act on it. A Windows device that connects through the device's OpenSSH client causes no such refusal.
929* **Refused sessions**: when a macOS or Linux device first connects to the host, the SSH server's log shows a sign-in followed by `no more sessions`. Claude Desktop remembers the limit for 7 days at a time: at the device's next connection after that, the log shows the sign-in and the refusal again. The refusal is how Claude Desktop learns of the limit, so you don't need to act on it.
934930* **More sign-ins**: each time a device connects or reconnects, it signs in at least twice, to run commands and to transfer files. Expect at least one more sign-in for each terminal tab, and for each Claude Desktop session in which the user runs commands that start with `!`.
935931* **One-time codes**: if the host also asks for a one-time code, users get a prompt at each sign-in for a connection or a terminal tab. Commands that start with `!` fail on that host, so have users run commands in a terminal tab.
936932 
from line 937
941937Choose what your Windows devices do. For the first and the third choice, check what the device's OpenSSH client needs, under **Check what the device's OpenSSH client needs on Windows** below.
942938 
943939* **Leave `sshTransport` unset**: new hosts and new PCs use the OpenSSH client.
944* **Keep the built-in client for every host**: set `sshTransport` to `builtin`. The setting applies to new hosts and new PCs too. If `sshClientPath` starts with `%LOCALAPPDATA%\`, remove it too, or SSH connections fail. See **If you set `sshTransport`** below.
940* **Keep the built-in client for every host**: set `sshTransport` to `builtin`. If `sshClientPath` starts with `%LOCALAPPDATA%\`, remove it too, or SSH connections fail. See **If you set `sshTransport`** below.
945941* **Use the OpenSSH client for every host**: set `sshTransport` to `system-openssh`. To go back, set `builtin`, and if `sshClientPath` starts with `%LOCALAPPDATA%\`, remove it too. See **If you set `sshTransport`** below.
946942 
947943With `sshTransport` unset or `auto`, the app still uses the built-in client in these cases, and in those under [Host requirements](#host-requirements):
from line 953
957953 
958954Four of these cases pass with time. They are configuration that hasn't loaded, a record that can't be read, an `ssh.exe` that Windows wouldn't start, and an `sshClientPath` program that gave no answer. A new host first reached in such a case isn't kept on the built-in client: once the case has passed, its connections use the OpenSSH client.
959955 
960A host under **Hosts already in use** moves to the OpenSSH client, or counts as new, in cases such as these. Once the OpenSSH client has connected to it, the host stays on the OpenSSH client.
956A host under **Hosts already in use** moves to the OpenSSH client in cases such as these. Once the OpenSSH client has connected to it, the host stays on the OpenSSH client.
961957 
962958* **You set `system-openssh`**: once one connection has succeeded under that setting, earlier use of the built-in client keeps no host on that client, even if you remove the setting later. Cases such as **PuTTY key files** still apply.
963959* **A host key that the built-in client can't check**: the user's `known_hosts` file has no plain entry for the host, and `ssh` would check its key against a certificate authority or another `known_hosts` file. The system-wide file is one such file. The host moves at its next connection.
964960* **A jump host**: a host that is given a jump host moves at its first connection after the user has quit and reopened Claude Desktop. Until then the built-in client dials the host without the jump host.
965* **A record that is lost**: on a re-imaged PC, or once the app has reset a damaged record, every host counts as new.
966961 
967Nothing that a user does to a saved connection in Claude Desktop moves its host. Removing the connection and adding it again at the same address, or editing its address, keeps the client. The same machine added under another name, address, or port counts as a new host. A user who edits their own `~/.ssh/config` or `known_hosts` file can cause the second or third case above.
962Nothing that a user does to a saved connection in Claude Desktop moves its host. Removing the connection and adding it again at the same address, or editing its address, keeps the client. The same machine added under another name, address, or port counts as a new host.
968963 
969964While hosts stay on the built-in client:
970965 
971966* **Host key checks**: a host on the built-in client keeps that client's [host key check](#ssh-configuration-on-the-device), which reads the user's `known_hosts` file alone, not the system-wide one or a `RevokedHostKeys` file. To move those hosts to `ssh`'s own check, on a device with a usable OpenSSH client, set `sshTransport` to `system-openssh`.
972* **Which client connected**: search `ssh.log` in the [logs directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives) for `master ready for` (the OpenSSH client) or `[SSH2Connection] Connected to` (the built-in client). If both appear for one connection, the later one counts. For the reason, search for `this connection attempt uses`: the line ends with the source of the choice, such as `host_kept` for a host already in use. Two devices can use different clients for the same host.
967* **Which client connected**: search `ssh.log` in the [logs directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives) for `master ready for` (the OpenSSH client) or `[SSH2Connection] Connected to` (the built-in client). If both appear for one connection, the later one counts. For the reason, search for `this connection attempt uses`: the line ends with the source of the choice, such as `host_kept` for a host already in use.
973968 
974969With the device's OpenSSH client on a Windows device:
975970 
976971* **Repeated sign-ins**: each time Claude Desktop connects or reconnects to a host, it signs in at least twice, to run commands and to transfer files, and once more for each terminal that opens. A Windows host needs at least one more sign-in each time. On a Windows device, each sign-in is a separate `ssh` process. They stay open together, so a per-user login limit on the host has to leave room for them. Each process connects to the host by name, so a name that stands for several machines, such as a load balancer or round-robin DNS, must send all connections from one device to the same machine. Claude Desktop repeats a typed password or key passphrase itself for the other sign-ins of that connection. A host that asks for a one-time code, a push approval, or a security key touch asks again at each sign-in.
977972* **Key files that other accounts can read**: `ssh` ignores a private key file that any account but the user, SYSTEM, or Administrators can read. After a sign-in fails because of such a file, Claude Desktop tightens the file's access list where it can, and connects again. `ssh.log` records the list before and after.
978* **Host keys that aren't on record**: where the app can show a prompt, it asks the user whether to trust the key, and records a trusted key in the user's `known_hosts` file. To distribute host keys instead, see [SSH configuration on the device](#ssh-configuration-on-the-device).
979973* **Saved passwords**: when the session's host asks for the account password, the sign-in dialog has a **Remember password for `<host>`** checkbox. To turn saved passwords off, set [`disableSshSavedPasswords`](https://code.claude.com/docs/en/desktop#managed-settings) to `true` in Claude Code's managed settings on the device, by the steps for `disableDesktopLocalSessions` in those settings under [Interaction with Claude Code managed settings on the device](#interaction-with-claude-code-managed-settings-on-the-device). Deliver the setting before devices start to use the OpenSSH client. Neither the Enterprise Admin Console nor a bootstrap server can deliver it. With the setting on, the sign-in dialog has no checkbox, and the app doesn't use saved passwords when it connects to a host. The setting doesn't delete those passwords. To delete a saved password, have the user hover over the connection in the [environment picker](https://code.claude.com/docs/en/desktop#start-a-session), click its gear icon, click **Edit connection…** if it appears, and click **Forget** next to **Password saved**. Removing the connection in the app also deletes its saved password, unless another connection in the app has the same **SSH host** and **SSH port**. Before Claude Desktop 18.19841.0, the app hid **Password saved** and **Forget** while `disableSshSavedPasswords` was `true` or while the built-in client served the host. On those versions, have the user remove the connection instead, or update Claude Desktop if the connection comes from `sshConfigs`.
980974 
981975Check what the device's OpenSSH client needs on Windows:
982976 
983* **Client version**: with no [`sshClientPath`](https://claude.com/docs/third-party/claude-desktop/configuration#sshclientpath), a usable client prints a version that starts with `OpenSSH_for_Windows_` and is 9.4 or later. That is Microsoft OpenSSH, also called Win32-OpenSSH. Run `ssh -V` in a Command Prompt window on a device, signed in as the user. If that output is anything else, run `ssh.exe -V` in `%SystemRoot%\System32\OpenSSH` and in `%ProgramFiles%\OpenSSH`: Claude Desktop uses the first usable client that it finds, on the `PATH`, then in those two folders in that order. If you set `sshClientPath`, run that program with `-V` instead. With `sshTransport` unset or `auto`, or in Claude Desktop 3.1623 and earlier, it has to pass the same test. With `system-openssh`, it can instead be an OpenSSH client that isn't Microsoft's. Such a client has to meet the conditions in [Use the OpenSSH client of Git for Windows](#use-the-openssh-client-of-git-for-windows) or in [Use an OpenSSH client installed per user](#use-an-openssh-client-installed-per-user). Each section names the Claude Desktop version that it requires.
984* **Devices without a usable client**: on a Windows device with no usable OpenSSH client and no `sshClientPath`, the built-in client is used, whatever `sshTransport` says. If the device can't run `ssh-keygen` either, connections fail at the host key check (see [SSH host key verification failed](#ssh-host-key-verification-failed)). Add the **OpenSSH Client** optional feature in Windows and install pending Windows updates, or install [Microsoft's newer build](https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/upgrade-in-box-openssh-to-latest-openssh-release). Run the version check again, then have users quit and reopen Claude Desktop. Hosts that the device first reached without a usable client stay on the built-in client. To move them, set `sshTransport` to `system-openssh`.
977* **Client version**: with no [`sshClientPath`](https://claude.com/docs/third-party/claude-desktop/configuration#sshclientpath), a usable client prints a version that starts with `OpenSSH_for_Windows_` and is 9.4 or later. That is Microsoft OpenSSH, also called Win32-OpenSSH. Run `ssh -V` in a Command Prompt window on a device, signed in as the user. If that output is anything else, run `ssh.exe -V` in `%SystemRoot%\System32\OpenSSH` and in `%ProgramFiles%\OpenSSH`: Claude Desktop uses the first usable client that it finds, on the `PATH`, then in those two folders in that order. If you set `sshClientPath`, run that program with `-V` instead. With `sshTransport` unset or `auto`, it has to pass the same test. With `system-openssh`, it can instead be an OpenSSH client that isn't Microsoft's. Such a client has to meet the conditions in [Use the OpenSSH client of Git for Windows](#use-the-openssh-client-of-git-for-windows) or in [Use an OpenSSH client installed per user](#use-an-openssh-client-installed-per-user). Each section names the Claude Desktop version that it requires.
978* **Devices without a usable client**: on a Windows device with no usable OpenSSH client and no `sshClientPath`, the built-in client is used, whatever `sshTransport` says. Add the **OpenSSH Client** optional feature in Windows and install pending Windows updates, or install [Microsoft's newer build](https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/upgrade-in-box-openssh-to-latest-openssh-release). Run the version check again, then have users quit and reopen Claude Desktop. Hosts that the device first reached without a usable client stay on the built-in client. To move them, set `sshTransport` to `system-openssh`.
985979* **Application control**: `ssh` shows its prompts through three helper programs that ship with Claude Desktop, `claude-ssh-askpass.exe`, `claude-ssh-broker.exe`, and `claude-ssh-proxy.exe`. Allow them in your application control policy by their publisher, Anthropic, PBC, and let the rule match any product name and any file version. Their folder changes with each update. With Claude Desktop 6.28899.2 or later, each file's version information gives the company `Anthropic, PBC`, the product `Claude`, and the file version `1.0.0.0`, which helps you recognize the files, for example in an alert. The file version stays `1.0.0.0` when Claude Desktop updates. The helper programs of Claude Desktop 6.6395.1 and earlier have no version information, so a rule that also requires a product name or a file version doesn't match them. Allow the `ssh.exe` that the version check found, and the `ssh-keygen.exe` beside it, too. If Windows refuses to start the helpers, the app can't ask for a key passphrase, and `ssh` refuses a host whose key isn't on record. If `sshTransport` is `system-openssh`, sign-ins that need a password or a one-time code fail. Otherwise, if the app itself can't start the helper, the built-in client makes those sign-ins. See [This computer won't start Claude's SSH sign-in helper](#this-computer-won%E2%80%99t-start-claude%E2%80%99s-ssh-sign-in-helper).
986980* **Firewall and endpoint security**: if your endpoint security software blocks `claude-ssh-askpass.exe`, `claude-ssh-broker.exe`, or `claude-ssh-proxy.exe` after a Claude Desktop update, have it trust their publisher, `Anthropic, PBC`, rather than a path or a file hash. See [Endpoint security software](https://claude.com/docs/third-party/claude-desktop/installation.md#endpoint-security-software). Allow `ssh.exe` outbound wherever you allow Claude Desktop itself. With `sshTransport` unset or `auto` and no `sshClientPath`, the built-in client takes over where Windows refuses to start `ssh.exe`, but not where `ssh.exe` starts and can't reach the network. Each connection that the OpenSSH client makes then fails or times out, and the card points to the network or the host, not to `ssh.exe`.
987* **While `ssh.exe` can't reach the network**: a host that stays on the built-in client still connects. For other hosts, set `sshTransport` to `builtin`, for Windows devices only, until you can allow `ssh.exe` (see **One value for all platforms** below). A host that the device first reaches meanwhile stays on the built-in client afterwards. The session's terminal runs `ssh.exe` with either client, so it stays blocked until then.
981* **While `ssh.exe` can't reach the network**: a host that stays on the built-in client still connects. For other hosts, set `sshTransport` to `builtin`, for Windows devices only, until you can allow `ssh.exe` (see **One value for all platforms** below). The session's terminal runs `ssh.exe` with either client, so it stays blocked until then.
988982* **Key files**: `ssh` doesn't read a PuTTY `.ppk` key file. Where a connection's identity file in the app is a `.ppk` file, and the host doesn't stay on the built-in client because of that file (see **PuTTY key files** above), Claude Desktop converts the key to OpenSSH format and gives `ssh` the converted copy. Claude Desktop keeps the copy in the `ssh\ppk-keys` folder of its [application-data directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives), where only the user, SYSTEM, and Administrators can open the copy, for as long as a saved connection names the `.ppk` file. The copy of a key that has a passphrase is encrypted with the same passphrase. The copy of a key that has no passphrase isn't encrypted. Claude Desktop doesn't convert a key that has no passphrase if the `.ppk` file is on a network share, is on another drive than the application-data directory, or is encrypted by Windows. It also doesn't convert a `.ppk` file that only `~/.ssh/config` names. For those files, export the key in OpenSSH format, and have the user select the exported file as the connection's identity file. Before Claude Desktop 18.35363.0, Claude Desktop on Windows converts no `.ppk` file, so export the key.
989983* **SSH configuration files**: `ssh` reads the user's `~/.ssh/config` itself, and the connection fails if `ssh` rejects the file. In a Command Prompt window on a device, signed in as the user, run the usable client with `-G` and a host, for example `ssh -G build01.corp.example.com`. Use the client's full path if it isn't the first `ssh` on the `PATH`. `ssh` prints the host's settings if it accepts the file, and an error if it doesn't.
990984 
from line 985
991985If you set `sshTransport`:
992986 
993987* **One value for all platforms**: `sshTransport` has no per-platform form. A Windows registry policy reaches Windows devices only. A value from a bootstrap server or the Enterprise Admin Console reaches the macOS and Linux devices that it serves too. The device's OpenSSH client already makes the connection there by default, so `builtin` moves them to the built-in client. To change Windows devices alone from a bootstrap server, return the key only in responses that go to them.
994* **Devices with a bootstrap server**: an available [bootstrap response](https://claude.com/docs/third-party/claude-desktop/bootstrap.md) replaces the `sshTransport` and `sshClientPath` that device management sets in the registry, even if it leaves a key out. A response without `sshTransport` puts the device back on the default. A response without `sshClientPath` cancels your pin. Claude Desktop then chooses the client as if you had pinned nothing (see **Client version** above). Where the built-in client connects, the first `ssh` on the user's `PATH` reads the SSH configuration and runs the terminal. Return both keys in the response too. Return a Windows path only in responses that go to Windows devices. `sshClientPath` has no per-platform form either, and SSH connections fail on a macOS or Linux device that gets a Windows path.
988* **Devices with a bootstrap server**: an available [bootstrap response](https://claude.com/docs/third-party/claude-desktop/bootstrap.md) replaces the `sshTransport` and `sshClientPath` that device management sets in the registry, even if it leaves a key out. A response without `sshClientPath` cancels your pin. Return both keys in the response too. Return a Windows path only in responses that go to Windows devices.
995989* **Keys that a bootstrap response leaves out**: where a response leaves out `sshTransport` or `sshClientPath` and the registry sets it, Claude Desktop 4.29.0 or later writes a line to `ssh.log` in the [logs directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives) each time it connects to an SSH host. The line contains `the device profile sets` and names the key.
996990* **Devices on the Enterprise Admin Console**: the console's configuration replaces the registry's `sshTransport` and `sshClientPath`, even where the console leaves them unset. Set them in the console too. A client that isn't Microsoft's, or a value that starts with `%LOCALAPPDATA%\`, doesn't connect when it comes from the console. The console's `sshClientPath` reaches its macOS and Linux devices too, and SSH connections fail there under a Windows path. See [Devices that move to an admin console organization](#devices-that-move-to-an-admin-console-organization).
997* **When a change takes effect**: at each host's next connection. An open app applies a change in the registry at its next configuration check. From a bootstrap server or the Enterprise Admin Console, an open app applies a new value only if it is `builtin`, once two configuration checks in a row return it. Other values apply, at the latest, once the app has been reopened and has downloaded the configuration. A host that is connected keeps its client until the connection drops, which can take days. To move it at once on a Windows device, have the user quit and reopen Claude Desktop. After a change to the managed configuration the reopened app can fail to rejoin the engine, and a turn that still runs on the host is then cut short, as [How a remote session works](#how-a-remote-session-works) describes. With a bootstrap server, a host that connects before the reopened app has downloaded the configuration uses the registry's value. Where the registry sets none, and with the console, see **Configuration that hasn't loaded** above.
991* **When a change takes effect**: at each host's next connection. An open app applies a change in the registry at its next configuration check. From a bootstrap server or the Enterprise Admin Console, an open app applies a new value only if it is `builtin`, once two configuration checks in a row return it. Other values apply, at the latest, once the app has been reopened and has downloaded the configuration. A host that is connected keeps its client until the connection drops, which can take days. To move it at once on a Windows device, have the user quit and reopen Claude Desktop. After a change to the managed configuration the reopened app can fail to rejoin the engine, and a turn that still runs on the host is then cut short, as [How a remote session works](#how-a-remote-session-works) describes.
998992* **What `builtin` leaves on the device**: going back undoes nothing that was written while the OpenSSH client was in use. Saved passwords and new entries in the user's `known_hosts` file stay. The access list of a private key file that the app tightened stays too, and `ssh.log` recorded that list as it was before. To delete a saved password, follow **Saved passwords** under [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client).
999993 
1000994### SSH configuration on the device
from line 997
1003997 
1004998* For hosts behind a bastion, configure a `ProxyJump` or `ProxyCommand`. `ProxyJump` works only when the device's OpenSSH client carries the connection. The built-in client refuses it. For the card that the user sees, see [Ask your IT administrator to set sshTransport to system-openssh](#ask-your-it-administrator-to-set-sshtransport-to-system-openssh).
1005999* A bastion must match `sshHostAllowlist` too. See [Jump hosts and the allowlist](#jump-hosts-and-the-allowlist).
1006* With the device's OpenSSH client, OpenSSH's own host key checking applies. For a host whose key isn't on record yet, where the app can show a prompt, it shows the key's fingerprint, asks the user whether to trust it, and records a trusted key in the user's `known_hosts` file, unless the user's own SSH configuration accepts new keys without asking. On some connections the app can't show a prompt, for example when it reconnects in the background. Distribute the host keys or a host certificate authority to the devices, so that each host's key is on record before users connect. `@cert-authority` entries are honored. A key that differs from the one on record for the host is refused, whatever the entry's `StrictHostKeyChecking` says, unless another setting in the SSH configuration that applies to the host turns that check off, such as `NoHostAuthenticationForLocalhost yes` for a host on a loopback address.
1007* With the device's OpenSSH client, you can keep the app from asking users to trust the key of a host that isn't on record yet. Distribute the host keys in the client's system-wide `known_hosts` file, such as `/etc/ssh/ssh_known_hosts`, or distribute a host certificate authority. Then set `StrictHostKeyChecking yes`, for example under `Host *`, in the client's system-wide configuration file, such as `/etc/ssh/ssh_config`, which also governs other uses of that client, such as `git` over SSH. Where the SSH configuration that applies to a host has `StrictHostKeyChecking yes`, Claude Desktop doesn't ask the user to trust such a key, and `ssh` refuses the host if it can't verify the key. A key that differs from the one on record is handled the same way with or without this setting. A user can override the setting. By OpenSSH's own rules, `ssh` reads the user's `~/.ssh/config` before the system-wide file and keeps the first value it finds for a setting, so a `StrictHostKeyChecking` line in the user's file applies in place of your system-wide line. `ssh` also accepts a key that the user adds to their own `known_hosts` file, but under `yes` a connection from a terminal doesn't record the key. A user who picks a host that `ssh` refuses sees "Couldn't connect to" followed by the host, with [SSH host key verification failed](#ssh-host-key-verification-failed) under **View details**.
1000* With the device's OpenSSH client, OpenSSH's own host key checking applies. For a host whose key isn't on record yet, where the app can show a prompt, it shows the key's fingerprint, asks the user whether to trust it, and records a trusted key in the user's `known_hosts` file, unless the user's own SSH configuration accepts new keys without asking. On some connections the app can't show a prompt, for example when it reconnects in the background. Distribute the host keys or a host certificate authority to the devices, so that each host's key is on record before users connect. A key that differs from the one on record for the host is refused, whatever the entry's `StrictHostKeyChecking` says, unless another setting in the SSH configuration that applies to the host turns that check off, such as `NoHostAuthenticationForLocalhost yes` for a host on a loopback address.
1001* With the device's OpenSSH client, you can keep the app from asking users to trust the key of a host that isn't on record yet. Distribute the host keys in the client's system-wide `known_hosts` file, such as `/etc/ssh/ssh_known_hosts`, or distribute a host certificate authority. Then set `StrictHostKeyChecking yes`, for example under `Host *`, in the client's system-wide configuration file, such as `/etc/ssh/ssh_config`, which also governs other uses of that client, such as `git` over SSH. Where the SSH configuration that applies to a host has `StrictHostKeyChecking yes`, Claude Desktop doesn't ask the user to trust such a key, and `ssh` refuses the host if it can't verify the key. A user can override the setting. By OpenSSH's own rules, `ssh` reads the user's `~/.ssh/config` before the system-wide file and keeps the first value it finds for a setting, so a `StrictHostKeyChecking` line in the user's file applies in place of your system-wide line. `ssh` also accepts a key that the user adds to their own `known_hosts` file. A user who picks a host that `ssh` refuses sees "Couldn't connect to" followed by the host, with [SSH host key verification failed](#ssh-host-key-verification-failed) under **View details**.
10081002* With the built-in client, the host's key must already be in the device's `~/.ssh/known_hosts` as a plain entry. The app does not prompt to accept a new key and does not evaluate `@cert-authority` entries, so have users connect once from a terminal before adding the host in the app.
10091003* With the built-in client, an identity file protected by a passphrase is skipped, not prompted for. Load it into the SSH agent, or use an unencrypted key. With the device's OpenSSH client, the app asks for the passphrase once the host's key is verified, and skips the key if the user cancels.
10101004* With the built-in client, a host reached through a `ProxyCommand` gets the same host key check as a host reached directly. Before Claude Desktop 2.9939.0, the built-in client skipped host key verification for such a host.
from line 1016
10221016 
10231017### Use the OpenSSH client of Git for Windows
10241018 
1025To have Windows devices connect with an OpenSSH client that isn't Microsoft's, such as the `ssh.exe` of Git for Windows, name the client in [`sshClientPath`](https://claude.com/docs/third-party/claude-desktop/configuration#sshclientpath). Unless `sshClientPath` names another client, the OpenSSH client that makes the connection on a Windows device is Microsoft's. Placing another client first on the `PATH` never lets that client make the connection. Requires Claude Desktop 3.6556.1 or later.
1019To have Windows devices connect with an OpenSSH client that isn't Microsoft's, such as the `ssh.exe` of Git for Windows, name the client in [`sshClientPath`](https://claude.com/docs/third-party/claude-desktop/configuration#sshclientpath). Placing another client first on the `PATH` never lets that client make the connection. Requires Claude Desktop 3.6556.1 or later.
10261020 
10271021Name another client only on devices with one user, not on devices that several users share.
10281022 
from line 1031
10371031 
10381032Before you deliver `sshClientPath` and `sshTransport`, check for these devices:
10391033 
1040* **Devices without the program**: with no file at the path that `sshClientPath` names, every SSH connection fails, whatever the value of `sshTransport`, and Claude Desktop's built-in SSH client doesn't take over. Install the program first, or deliver both settings only to devices that have it. A device that gets neither setting connects as before.
1034* **Devices without the program**: with no file at the path that `sshClientPath` names, every SSH connection fails, whatever the value of `sshTransport`, and Claude Desktop's built-in SSH client doesn't take over. Install the program first, or deliver both settings only to devices that have it.
10411035* **Devices with a bootstrap server**: once loaded, the server's response replaces machine policy's values, even for a setting that the response leaves out. A response that leaves `sshClientPath` out cancels your choice of client, and the app then uses Microsoft's OpenSSH or the built-in client. Return both settings in the response as well as in machine policy. Return `sshClientPath` only to Windows devices, because SSH connections fail on a macOS or Linux device that gets a Windows path.
10421036 
10431037If `sshTransport` is `system-openssh` and any other condition in the list doesn't hold, connections fail with the card "Ask your IT administrator to fix the configured SSH program". Claude Desktop never runs another `ssh` in the program's place.
10441038 
1045With `system-openssh` and a client named in `sshClientPath`, Claude Desktop's built-in client tries the connection in one case only. In that case the program's file exists, but Windows won't start the program, or the program gives no answer when Claude Desktop starts it without connecting. That case ends as soon as the program has answered once since Claude Desktop opened.
1039With `system-openssh` and a client named in `sshClientPath`, Claude Desktop's built-in client tries the connection in one case only. In that case the program's file exists, but Windows won't start the program, or the program gives no answer when Claude Desktop starts it without connecting.
10461040 
10471041To find the condition that doesn't hold, select **View details** on the card and read the line that starts with `Claude needs:`. `ssh.log` in the [logs directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives) on the device names the condition too. The card says less in these cases:
10481042 
from line 1094
11001094 
11011095Plan for these effects before you turn the key on:
11021096 
1103* **Hosts that Claude Desktop refuses**: Claude Desktop refuses hosts that aren't Linux, and Linux hosts that lack the versions of the remote server and Claude Code that Claude Desktop needs. It doesn't upload the programs instead. A remote server that already runs on such a host keeps running, with the work under it, and a device with the key on can't connect to it. You can end it on the host.
1097* **Hosts that Claude Desktop refuses**: Claude Desktop refuses hosts that aren't Linux, and Linux hosts that lack the versions of the remote server and Claude Code that Claude Desktop needs. A remote server that already runs on such a host keeps running, with the work under it, and a device with the key on can't connect to it. You can end it on the host.
11041098* **Exact versions**: each Claude Desktop release needs one version of the remote server and one version of Claude Code. A device that updates before you install those versions can't connect to your hosts, or reach work that already runs on them, so [hold updates until the hosts are ready](#install-new-versions-before-devices-update). Claude Desktop starts Claude Code with its background updates turned off.
11051099* **Running work**: the first time a device with the key on connects to a host that has both versions, Claude Desktop ends the remote server that it started from the home directory, and the work that runs under that remote server. A turn in progress is cut off, and users can resume the conversation afterward. A running Claude Desktop can apply the key without a restart. Deliver the change when no work runs on the hosts, overnight runs included, and tell users first. Turning the key off interrupts that work too.
11061100* **What stays in the home directory**: the home directory must still be writable. The remote server keeps its [socket, token, and log](#host-requirements) there, and Claude Desktop still puts synced plugins, their programs included, and uploaded files there. A `noexec` mount or an allowlist can stop the plugins' programs from running. The key doesn't restrict other code that runs under the SSH user's account, so it isn't a security boundary against that account.
from line 1163
11691163 
11701164* **Owner and mode**: root owns both files and every parent folder, and no group or other account can write to any of them. SSH users can enter the folders, and can read and run both files.
11711165* **Kind of file**: both are regular files with no setuid bit, setgid bit, or file capabilities. Neither the folder nor anything inside it is a symbolic link.
1172* **Name**: the remote server sits in a folder named for its version, and the Claude Code file is named for its version. Versions for several releases can sit side by side.
1166* **Name**: the remote server sits in a folder named for its version, and the Claude Code file is named for its version.
11731167* **File system**: the folder is on the machine's own disk or in the container's image, not on a network share. Where SSH logins start in a container, install the files in that container's image, and test one such host with a pilot device first.
11741168 
11751169Keep both files exactly as you downloaded them, and turn off any packaging step that strips or rewrites programs.
from line 1185
11911185Start with one pilot device whose user connects to hosts that you have prepared for that device's version of Claude Desktop. Set `sshHostProgramsPreinstalled` to `true` in the device's [managed location](https://claude.com/docs/third-party/claude-desktop/mdm.md#4-deploy-the-configuration). Claude Desktop takes this key from device management and ignores it in the local configuration, a [bootstrap server](https://claude.com/docs/third-party/claude-desktop/bootstrap.md)'s response, and the Enterprise Admin Console.
11921186 
11931187* **Versions on the device**: deliver the key to devices on Claude Desktop 6.6395.0 or later (on a Mac, 6.6395.1 or later), and [hold their updates](#install-new-versions-before-devices-update) first. A version that doesn't recognize the key [can turn off other settings](https://claude.com/docs/third-party/claude-desktop/mdm.md#keys-that-an-earlier-version-does-not-recognize).
1194* **Where to put the key**: put it in the machine-level profile or policy, together with your other Claude Desktop keys. On Windows, a value in machine policy (`HKLM`) makes Claude Desktop [ignore user policy](https://claude.com/docs/third-party/claude-desktop/mdm.md#4-deploy-the-configuration) (`HKCU`) entirely, so move keys that you keep in user policy to machine policy first. On a Mac, put every key in one machine profile, as the same section describes. A profile or policy that sets only this key leaves the device's local configuration in force, and still [changes other behaviors on the device](https://claude.com/docs/third-party/claude-desktop/mdm.md#what-a-profile-or-policy-changes-on-a-device).
1188* **Where to put the key**: put it in the machine-level profile or policy, together with your other Claude Desktop keys. On Windows, a value in machine policy (`HKLM`) makes Claude Desktop [ignore user policy](https://claude.com/docs/third-party/claude-desktop/mdm.md#4-deploy-the-configuration) (`HKCU`) entirely, so move keys that you keep in user policy to machine policy first. A profile or policy that sets only this key leaves the device's local configuration in force, and still [changes other behaviors on the device](https://claude.com/docs/third-party/claude-desktop/mdm.md#what-a-profile-or-policy-changes-on-a-device).
11951189* **Hosts with a corporate launcher**: where the host's Claude Code managed settings name a [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) in `processWrapper`, Claude Desktop gives that launcher the path of Claude Code in the folder, so the host needs both programs. Set `claudeCodeProcessWrapperEnabled` to `true` in the same profile or policy as this key, and also where a bootstrap server or the Enterprise Admin Console serves your configuration. Otherwise, new sessions can [start without the launcher](https://claude.com/docs/third-party/claude-desktop/code.md#devices-that-skip-the-corporate-launcher).
11961190* **Linux devices with an exported file**: the in-app configuration window has no field for this key. Where `/etc/claude-desktop/managed-settings.json` is that window's [JSON export](https://claude.com/docs/third-party/claude-desktop/configuration-format.md#the-linux-configuration-file), which has a `$schemaVersion` key, add each key yourself at its nested place, inside the object of that name if the file already has one: `codeSurface.sshHostProgramsPreinstalled`, `autoUpdate.disabled` for `disableAutoUpdates`, and, for hosts with a launcher, `workspace.claudeCodeProcessWrapperEnabled`. A key at the top level of an export makes Claude Desktop ignore every setting in the export's nested form, the connection included.
11971191* **The value on Windows**: write a `REG_DWORD` of `1`. Claude Desktop [doesn't see some other value types](https://claude.com/docs/third-party/claude-desktop/mdm.md#4-deploy-the-configuration), and then leaves the key off without a warning.
from line 1215
12211215 
12221216### Your organization doesn't allow this SSH connection
12231217 
1224The `sshHostAllowlist` in effect on this device is unset, empty, or has no entry that matches the host or a jump host on the way to it. The card's details say which. The name that must match is the `HostName` that the device's `~/.ssh/config` resolves the entered host to, so an entry that lists only an alias doesn't allow the host. To find which configuration source supplies the key on a device, see [Interaction with Claude Code managed settings on the device](#interaction-with-claude-code-managed-settings-on-the-device). For a device that moved to an admin console organization, see [Devices that move to an admin console organization](#devices-that-move-to-an-admin-console-organization). The connection test, and the "Couldn't connect to" card on the New session page, report the same denial as "Your organization's settings don't allow this connection", or "do not allow" in earlier releases. Before Claude Desktop 2.31226.0, the card's title was "SSH isn't allowed by your organization".
1218The `sshHostAllowlist` in effect on this device is unset, empty, or has no entry that matches the host or a jump host on the way to it. The card's details say which. The name that must match is the `HostName` that the device's `~/.ssh/config` resolves the entered host to, so an entry that lists only an alias doesn't allow the host. To find which configuration source supplies the key on a device, see [Interaction with Claude Code managed settings on the device](#interaction-with-claude-code-managed-settings-on-the-device). For a device that moved to an admin console organization, see [Devices that move to an admin console organization](#devices-that-move-to-an-admin-console-organization). The connection test, and the "Couldn't connect to" card on the New session page, report the same denial as "Your organization's settings don't allow this connection", or "do not allow" in earlier releases.
12251219 
12261220For a jump host, read the warning under [Jump hosts and the allowlist](#jump-hosts-and-the-allowlist), then add the first name in the details to the allowlist. That name is the jump host's `HostName`, and the second name is the host that the user entered.
12271221 
from line 1223
12291223SSH host "bastion.corp.example.com" is not allowed by your organization's managed settings. It is a jump host on the way to "build01".
12301224```
12311225 
1232If the next attempt names another jump host, add that one too. To find every name beforehand, see [Jump hosts and the allowlist](#jump-hosts-and-the-allowlist). Requires Claude Desktop 3.1623.0 or later.
1226If the next attempt names another jump host, add that one too.
12331227 
12341228### SSH to this device isn't available
12351229 
1236The host resolves to the device itself (`localhost`, `127.0.0.1`, or a tunnel or port forward that ends on the device) while `allowedWorkspaceFolders` restricts workspace folders. A session over SSH to the device reaches the same disk the policy restricts, so it is refused. Connect to a different host, or use a local session unless `disableDesktopLocalSessions` turns those off. Before Claude Desktop 2.31226.0, the card's title was "SSH to this machine isn't available".
1230The host resolves to the device itself (`localhost`, `127.0.0.1`, or a tunnel or port forward that ends on the device) while `allowedWorkspaceFolders` restricts workspace folders. A session over SSH to the device reaches the same disk the policy restricts, so it is refused. Connect to a different host, or use a local session unless `disableDesktopLocalSessions` turns those off.
12371231 
12381232### SSH sessions can't use your model provider settings
12391233 
1240The configured inference credential is one of the kinds listed as refused under [Inference credentials on the remote host](#inference-credentials-on-the-remote-host), or the inference endpoint is on the device itself. The card's details say which. Switch the deployment to a credential kind that works on a remote host, or point the app at an endpoint the host can reach. For a named profile that is refused, see what [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile) needs. Before Claude Desktop 2.31226.0, the card's title was "Remote sessions aren't available with this inference setup".
1234The configured inference credential is one of the kinds listed as refused under [Inference credentials on the remote host](#inference-credentials-on-the-remote-host), or the inference endpoint is on the device itself. The card's details say which. Switch the deployment to a credential kind that works on a remote host, or point the app at an endpoint the host can reach. For a named profile that is refused, see what [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile) needs.
12411235 
12421236### Couldn't start Claude Code: No AWS config found
12431237 
from line 1267
12731267 
12741268### Connect to a Linux host that your organization has set up
12751269 
1276The card's title is `Connect to a Linux host that your organization has set up`, and the card says `Your organization allows SSH sessions only on Linux hosts it has set up for Claude.` The device has [`sshHostProgramsPreinstalled`](#preinstall-the-remote-server-and-claude-code-on-ssh-hosts) on, and the host isn't Linux, or the SSH user's login shell on a Linux host is PowerShell. Have the user connect to a Linux host that you prepared, or give the account another login shell.
1270The card says `Your organization allows SSH sessions only on Linux hosts it has set up for Claude.` The device has [`sshHostProgramsPreinstalled`](#preinstall-the-remote-server-and-claude-code-on-ssh-hosts) on, and the host isn't Linux, or the SSH user's login shell on a Linux host is PowerShell. Have the user connect to a Linux host that you prepared, or give the account another login shell.
12771271 
12781272### SSH host key verification failed
12791273 
12801274The host's key has changed, or it is not in the device's `~/.ssh/known_hosts` and was not trusted in the app (the built-in client never asks). Connect to the host from a terminal on the device to check and record the current key, then retry.
12811275 
1282With the built-in client, the connection test reports this failure as "Host key changed or not trusted". With that client, connections also fail at the host key check when the app can't run `ssh-keygen`, even when the host's key is in `known_hosts`. The built-in client looks up the host's key with `ssh-keygen`, which it looks for first in the folder of the program that [`sshClientPath`](https://claude.com/docs/third-party/claude-desktop/configuration#sshclientpath) names, then on the user's `PATH`.
1276With the built-in client, the connection test reports this failure as "Host key changed or not trusted". With that client, connections also fail at the host key check when the app can't run `ssh-keygen`, even when the host's key is in `known_hosts`.
12831277 
12841278* **A blocked `ssh-keygen`**: where the device refuses to start the `ssh-keygen` of its OpenSSH client, for example under an application control policy, allow that `ssh-keygen` to run. Where a Windows or Linux device refuses to start the `ssh-keygen` beside the program that `sshClientPath` names, the connection fails with the card [Ask your IT administrator to fix the configured SSH program](#ask-your-it-administrator-to-fix-the-configured-ssh-program) instead of this failure. The connection test then reports "The SSH program your organization configured can't be used".
12851279* **A Windows device with no `sshClientPath` and no `ssh-keygen.exe` on the user's `PATH`**: if the device also has no usable OpenSSH client, such as Microsoft's, the app uses the built-in client for every connection, whatever `sshTransport` says. Claude Desktop 6.6395.0 or later then runs the `ssh-keygen.exe` that Git for Windows installs in `Program Files\Git\usr\bin`. If Claude Desktop finds none or can't run it, the user sees this failure or one of the cards listed under [Ask your IT administrator to set sshTransport to system-openssh](#ask-your-it-administrator-to-set-sshtransport-to-system-openssh). Where the user sees one of those cards, the connection test reports "Host key can't be checked". Before Claude Desktop 6.6395.0, the user sees this failure whether or not the device has Git for Windows.
from line 1299
13051299 
13061300Where the app can name no step, the card's title gives the cause, such as `<host> needs a jump host, which Claude can't use here` or `Claude can't check <host>'s key here`.
13071301 
1308These cards require Claude Desktop 2.31226.0 or later. Before Claude Desktop 2.31226.0, the built-in client refused a `ProxyJump` host with a message that suggests `ProxyCommand`.
1309 
13101302### Ask your IT administrator to fix the configured SSH program
13111303 
13121304The program that `sshClientPath` names is missing, can't be run, is too old, or on Windows doesn't meet the conditions for its kind. Claude Desktop never runs another `ssh` in its place. Select **View details** on the card for the program's path. On a Windows device, to find the condition, see [Use the OpenSSH client of Git for Windows](#use-the-openssh-client-of-git-for-windows) or [Use an OpenSSH client installed per user](#use-an-openssh-client-installed-per-user). With no `sshClientPath`, the card appears on a macOS or Linux device where `sshTransport` is `system-openssh` and the device can't start its own `ssh`. A Windows device in that state uses the built-in client. Where the built-in client makes the connection, the card also appears if a Windows or Linux device refuses to start the `ssh-keygen` in the folder of the program that `sshClientPath` names, for example under an application control policy. **View details** then shows a line that starts with `ssh-keygen:` and gives the blocked program's path. Allow that program to run, then have the user try again.
from line 1314
13221314 
13231315### Claude's SSH sign-in helper isn't working on this computer
13241316 
1325On a macOS or Linux device, `claude-ssh-askpass` is missing or doesn't work, though the operating system didn't refuse to start it. Without it the app can't ask for a password, a one-time code, or a key passphrase, so a sign-in that needs one fails. Select **View details** and match the line that starts with `What failed:`:
1317A helper program that shows `ssh`'s prompts is missing or doesn't work, though the operating system didn't refuse to start it. On a macOS or Linux device, it is `claude-ssh-askpass`. Without it the app can't ask for a password, a one-time code, or a key passphrase, so a sign-in that needs one fails. Select **View details** and match the line that starts with `What failed:`:
13261318 
13271319* **`it is missing`**: reinstall Claude Desktop, then have the user try again.
13281320* **`its test run failed`, `its test run timed out`, `its test run sent no answer`, or `its test run could not be started`**: have the user try again. If the card comes back, have them quit and reopen Claude Desktop. An update that was installed while the app was running can make that necessary. If it still comes back, reinstall the app.
13291321* **`ssh seems unable to start it, though Claude can`**: allow `ssh` to start the helper in your application control policy. Have the user wait until then, because each try can send the host empty passwords, which can count toward an account lockout.
13301322* **`it cannot reach Claude because ssh's stderr is redirected, for example by a wrapper script`**: look for a wrapper around `ssh`. Change the program that `sshClientPath` names, or the `ssh` first on the user's `PATH`, so that it leaves standard error untouched.
1323* **Windows devices**, with Claude Desktop 7.37095.0 or later: the card appears too, and the `Not working:` line names `claude-ssh-askpass.exe` or `claude-ssh-broker.exe`. With Claude Desktop 18.19841.0 or later, it can also name `claude-ssh-proxy.exe`. The built-in client doesn't connect instead. Follow the step above for the `What failed:` line, with these differences:
1324 * **A step that says to reinstall**: update Claude Desktop or deploy a newer version instead. If no newer version is available, contact your Anthropic representative. Don't uninstall or reset the MSIX package, and tell the user not to. Before Claude Desktop 18.19841.0, the card tells them to reinstall. An uninstall or a reset can delete [data that is kept in the package](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives).
1325 * **`it failed while starting up`**: follow the step for `its test run failed`.
1326 * **`its token file could not be written`**: the app couldn't write a file under the user's `%TEMP%` folder. Have the user try again.
13311327 
1332While the fault lasts, Claude Desktop can't reconnect by itself with a saved password. It shows the card only while a user waits for the connection, for example after they start a session or send a message. Requires Claude Desktop 4.16336.0 or later.
1328While the fault lasts, Claude Desktop can't reconnect by itself with a saved password. It shows the card only while a user waits for the connection, for example after they start a session or send a message. Requires Claude Desktop 4.16336.0 or later on macOS and Linux devices.
13331329 
13341330### This computer's ssh refuses a backslash or dollar sign in user names
13351331 
from line 1335
13391335* **`couldn't find which system ssh_config this ssh reads` or `couldn't write that file`**: have the user try again. With the second, the app couldn't write the file in a private temporary folder.
13401336* **`the name is the jump host's`**: the card's title is "This computer's ssh refuses the jump host's user name". In the user's `~/.ssh/config`, move the name from `ProxyJump` to a `User` line in the jump host's own `Host` block.
13411337 
1342This card requires Claude Desktop 2.37337.0 or later.
1343 
13441338### A required sandbox isn't available
13451339 
13461340Claude Code on the host requires a sandbox that isn't available there, so it exits as it starts. The requirement comes from [`sshHostSandboxUnavailable`](#refuse-sessions-on-a-host-without-a-working-sandbox) set to `refuse` in your configuration, or from `sandbox.failIfUnavailable` in Claude Code settings on the host, in server-managed settings or a gateway's `code` settings, or in what a policy helper returns.
from line 1348
13541348* **`[SFTP_UNAVAILABLE]`**: the host's SSH server refused the SFTP subsystem. Enable `Subsystem sftp` in the server's `sshd_config`, or see what a session needs under [Hosts without SFTP](#hosts-without-sftp).
13551349* **`[SESSION_LIMIT]`**: the host's SSH server refused to open another session on the connection. If the host has to keep its `MaxSessions` limit, the device's OpenSSH client has to make the connection. See [Hosts that allow one session per connection](#hosts-that-allow-one-session-per-connection) for the version and the setting that each platform needs. Otherwise, raise `MaxSessions` in the server's `sshd_config`, for example to OpenSSH's default of 10, and reload the SSH server.
13561350* **`[SFTP_NOT_STARTED]`**: the host's SSH server accepted the request for SFTP, but the SFTP server ended before its first answer, or text arrived in place of that answer. In a terminal on the device, run `sftp` with the same host, for example `sftp [email protected]`, to see what stops it. Then check the settings and files that the message names, or see what a session needs under [Hosts without SFTP](#hosts-without-sftp).
1357* **`[EXEC_NO_INPUT]`**: the app's command ran on the host but got no input, which setup and the session's own link need. Either a shell startup file of the SSH user, such as `~/.bashrc` or `~/.zshenv`, asks a question and takes the input, or the host's SSH server passes none. In a terminal on the device, run `echo hi | ssh` with the same host and `cat`, for example `echo hi | ssh [email protected] cat`. It prints `hi` on a host where commands get input. First have the user keep those files from asking questions in non-interactive shells. If neither file asks one, have the host's administrator let commands run over SSH receive input.
1351* **`[EXEC_NO_INPUT]`**: the app's command ran on the host but got no input. Either a shell startup file of the SSH user, such as `~/.bashrc` or `~/.zshenv`, asks a question and takes the input, or the host's SSH server passes none. In a terminal on the device, run `echo hi | ssh` with the same host and `cat`, for example `echo hi | ssh [email protected] cat`. It prints `hi` on a host where commands get input. First have the user keep those files from asking questions in non-interactive shells. If neither file asks one, have the host's administrator let commands run over SSH receive input.
13581352* **`[ENOSPC]` or `[EDQUOT]`**: a disk is full, or a quota is used up. In a message that starts with `Couldn't prepare the deploy locally`, the disk is the device's. In any other message it is the host's, so free space in the SSH user's home directory. [Host requirements](#host-requirements) gives the space the app needs.
13591353* **`Unsupported remote platform`**: the host's operating system or processor isn't among those under [Host requirements](#host-requirements).
1360* **`[CLI_NOT_RUNNABLE]`**: the remote server installed the engine, but the engine's first run didn't start or didn't exit cleanly, so the remote server removed it. One cause is a glibc older than 2.17. Run `ldd --version` on the host to check. Before Claude Desktop 2.37337.0, the message has no code and starts with `Couldn't install the Claude CLI on the remote (cli archive)`.
1354* **`[CLI_NOT_RUNNABLE]`**: the remote server installed the engine, but the engine's first run didn't start or didn't exit cleanly, so the remote server removed it. One cause is a glibc older than 2.17. Run `ldd --version` on the host to check.
13611355* **`[NO_INSTALL_RESULT]`**: the remote server's install step printed no result. A home directory mounted `noexec` is one cause, where the host's error message doesn't say `Permission denied` or `Operation not permitted`. Where it does, the code is `[SERVER_NOT_RUNNABLE]`. Before Claude Desktop 4.4212.0, a host with SFTP gets `[NO_INSTALL_RESULT]` in both cases.
1362* **`[SETUP_DIR_NOEXEC]`**: on a [host without SFTP](#hosts-without-sftp), the host didn't run a test program from `~/.claude/remote` in the SSH user's home directory, so the app didn't copy the remote server. A home directory mounted `noexec` and a restricted login shell are two causes. Have the host's administrator let the SSH user run programs from `~/.claude/remote`.
1356* **`[SETUP_DIR_NOEXEC]`**: on a [host without SFTP](#hosts-without-sftp), the host didn't run a test program from `~/.claude/remote` in the SSH user's home directory. A home directory mounted `noexec` and a restricted login shell are two causes. Have the host's administrator let the SSH user run programs from `~/.claude/remote`.
13631357* **`[SERVER_NOT_RUNNABLE]`**: the remote server didn't run from `~/.claude/remote` in the SSH user's home directory, or stopped before it answered. A home directory mounted `noexec` is one cause, and security software on the host that keeps programs from running there is another. Have the host's administrator check that programs can run from that folder. Before Claude Desktop 4.4212.0, the code appears only on a [host without SFTP](#hosts-without-sftp).
1364* **`[DOWNLOAD_BUSY]`**: Anthropic's download server answered that it is busy, so Claude Desktop couldn't download the engine or the remote server to the device. Claude Desktop has already waited and asked again. Have the user try again in a few minutes. If the code keeps coming back, check whether a proxy on the device's network limits downloads from `downloads.claude.ai`, because a proxy can give the same answer.
1365* **`[DOWNLOAD_FAILED]`, or `Couldn't prepare the deploy locally` with a network code such as `[ETIMEDOUT]`**: the device couldn't download one of the programs that it puts on the host. In the message, `(server binary)` stands for the remote server and `(cli archive)` for the engine. Have the user check the device's internet connection. If your network blocks `downloads.claude.ai`, allow it. If you can't, and your SSH hosts run Linux on x64 or arm64, install Claude Desktop with the [offline installer](https://claude.com/docs/third-party/claude-desktop/installation.md#ssh-remote-sessions-with-the-offline-installer), which bundles the remote server and the engine for those hosts.
1358* **`[DOWNLOAD_BUSY]`**: Anthropic's download server answered that it is busy, so Claude Desktop couldn't download the engine or the remote server to the device. Have the user try again in a few minutes. If the code keeps coming back, check whether a proxy on the device's network limits downloads from `downloads.claude.ai`, because a proxy can give the same answer.
1359* **`[DOWNLOAD_FAILED]`, or `Couldn't prepare the deploy locally` with a network code such as `[ETIMEDOUT]`**: the device couldn't download one of the programs that it puts on the host. In the message, `(server binary)` stands for the remote server and `(cli archive)` for the engine. Have the user check the device's internet connection. If your network blocks `downloads.claude.ai`, allow it. If you can't, and your SSH hosts run Linux on x64 or arm64, install Claude Desktop with the [offline installer](https://claude.com/docs/third-party/claude-desktop/installation.md#ssh-remote-sessions-with-the-offline-installer).
13661360* **`[DOWNLOAD_BLOCKED]`**: a proxy, a firewall, or the download server refused the device's download of one of those programs, for example with HTTP `403` or `407`, or with a certificate error. Allow `downloads.claude.ai` or use the offline installer, as for `[DOWNLOAD_FAILED]`.
13671361* **`[DOWNLOAD_GOT_WEB_PAGE]`**: a web page came back in place of the download. If the device's network has a sign-in page, have the user sign in. If a proxy answers `downloads.claude.ai` with a block page, allow that address or use the offline installer, as for `[DOWNLOAD_FAILED]`.
13681362 
1369`[SESSION_LIMIT]` and `[SFTP_NOT_STARTED]` require Claude Desktop 2.31226.0 or later. `[SFTP_NOT_STARTED]` appears only when the device's OpenSSH client makes the connection. Their cards are titled `<host> allows too few SSH sessions per connection` and `SFTP doesn't start on <host>`.
1363`[SESSION_LIMIT]` and `[SFTP_NOT_STARTED]` require Claude Desktop 2.31226.0 or later. Their cards are titled `<host> allows too few SSH sessions per connection` and `SFTP doesn't start on <host>`.
13701364 
13711365In Claude Desktop 4.16336.0 or later, `[SESSION_LIMIT]` also appears where the built-in client makes the connection, on a device of any platform. Before Claude Desktop 4.16336.0, it appears only on macOS and Linux devices, and only when the device's OpenSSH client makes the connection.
13721366 
1373`[CLI_NOT_RUNNABLE]` and `[EXEC_NO_INPUT]` require Claude Desktop 2.37337.0 or later. `[EXEC_NO_INPUT]` appears only where the device's OpenSSH client makes the connection. Their cards are titled `Claude Code didn't run on <host>` and `Commands on <host> get no input`. From the same version, the card is titled `Couldn't copy Claude Code to <host>` where the app couldn't put its files on the host, and `Couldn't install Claude Code on <host>` where the engine's install failed, each for a cause with no card of its own.
1367`[CLI_NOT_RUNNABLE]` and `[EXEC_NO_INPUT]` require Claude Desktop 2.37337.0 or later. Their cards are titled `Claude Code didn't run on <host>` and `Commands on <host> get no input`. From the same version, the card is titled `Couldn't copy Claude Code to <host>` where the app couldn't put its files on the host, and `Couldn't install Claude Code on <host>` where the engine's install failed, each for a cause with no card of its own.
13741368 
13751369Before Claude Desktop 18.35363.0, the `[EXEC_NO_INPUT]` card is titled `Ask <host>'s administrator to let SSH commands receive input`. Before Claude Desktop 4.29.0, it is titled `<host> doesn't pass input to commands run over SSH`.
13761370 
Feedback