sshHostAllowlist key, because enabling them sends your inference credential to the hosts users connect to.
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.How a remote session works
- 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), applies the host’s entry from the device’s
~/.ssh/config(see SSH configuration on the device), and prompts in the app if the host asks for a password or a one-time code. - 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 lists every path) and reuses them on later connections. - Run. The remote server starts the engine on the host with the inference credential and policy from your managed configuration. 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 from the device and exposes them to the engine as tools.
- 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.
- 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.
- 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.
KillUserProcesses setting is yes and applies to the SSH user behave this way. To keep remote sessions running through a disconnect on such a host, ask the host’s administrator to exempt the SSH user, for example by listing the user under KillExcludeUsers in the systemd-logind configuration.
An idle engine stays on the host, with the credential in its environment, until one of these happens:
- The user archives or deletes the session while Claude Desktop is connected to the host.
- The user reopens the session and Claude Desktop ends the engine to start a fresh one.
- The host restarts.
- After an update that includes a new remote server, Claude Desktop replaces the host’s remote server at a later connection. This ends the engines under the old server. Claude Desktop can put the replacement off while it believes that work is running on that host.
- After an update that includes a newer Claude Code, the user sends a message in the session. Claude Desktop 4.29.0 or later can then replace the engine with the newer version, if the engine has reported that it has no background or scheduled work.
- On a Linux or macOS host, 30 days pass without a connection from Claude Desktop to the remote server. The remote server then stops and ends its engines. Requires Claude Desktop 1.52386.0 or later.
- Someone ends the engine’s process on the host. To list or end the engines and the remote server yourself on a Linux or macOS host, see Files and processes on the remote machine. There the engine is called Claude Code, and the remote server the helper.
- File tools under a folder restriction: if you set
allowedWorkspaceFolders, Claude Desktop checks each file read, search, and edit before it happens. While Claude Desktop is disconnected, each of these calls waits up to 10 minutes and then fails. - Tools that your policy sets to ask: if
builtinToolPolicysets a bare tool name, such asBash, toask, Claude Desktop is consulted before each call to that tool. While Claude Desktop is disconnected, each call waits up to 10 minutes and then fails. - Tools from MCP servers that run on the device: these include your managed MCP servers (see 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.
Account that a remote session runs under
On a Linux or macOS host, the remote server and the engine run as the SSH user. Installing and starting them takes nosudo. The shell commands and MCP servers that the engine starts there also start as the SSH user. Review the SSH user’s rights on the host, sudo rules included, as you would for a person who runs commands there.
Alert the user with hooks on the host
A hook is a command of yours that the engine runs on the host at a set point in a session. With hooks, the host can tell the user that a turn is waiting at a permission prompt, has finished, or has failed with an API error, including while Claude Desktop is disconnected. To set them up, add thishooks key to ~/.claude/settings.json in the SSH user’s home directory on the host before the user starts the session.
~/.claude/settings.json
/path/to/alert-user.sh with a script that you write and place on the host, for example one that posts to a messaging service that the host can reach. The engine runs the script as the SSH user and passes it the event as JSON on standard input, with fields such as hook_event_name, session_id, and cwd. The Stop event also carries Claude’s last message, so forward only the fields that the alert needs.
Have the script print nothing and exit with code 0, because a Stop hook’s output and exit code can keep the turn going (see Stop decision control). To confirm the setup, have the user start a remote session on the host and send a message. The script runs when Claude finishes responding.
The hooks run in these cases:
- A permission prompt waits for the user’s answer: the
Notificationhook runs once the prompt has waited about six seconds - Claude finishes responding: the
Stophook runs - An API error, such as an authentication error, ends the turn: the
StopFailurehook runs in place ofStop
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:
- Each file read, search, and edit, if you set
allowedWorkspaceFolders - Each call to a tool that
builtinToolPolicysets toaskby its bare name, such asBash - Each call to a tool from an MCP server that runs on the device
ask (for each limit, see How a remote session works). Claude receives the failure as the call’s result, and a further call of the same kind waits again, which delays the Stop hook. For a task that makes these calls, have the user keep the device awake and connected.
To cover every user of a host, put the hooks in Claude Code managed settings 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 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.
Where MCP servers run in a remote session
An MCP server in a remote session runs on the device or on the host, depending on how it was added.- Managed MCP servers, and servers from plugins in the
org-pluginsdirectory: the device. Claude Desktop connects to the remote (HTTP or SSE) MCP servers and starts the local (stdio) ones on the device, and exposes them to the engine as tools. - Local servers that a user adds under Settings > Developer: the host, not the device. Claude Desktop sends the host a server’s command, its arguments, and only those of its environment variables whose names start with
MCP_or are one of a few fixed logging and runtime names, such asDEBUGandNODE_ENV. A secret in an argument or in anMCP_variable reaches the host. On a Linux or macOS host, Claude Desktop leaves out a server whose command is a path under a macOS or Windows folder, such as/Applications/orC:\. - Servers bundled in any other plugin that Claude Desktop copies to the host: the host. The engine starts the plugin’s local servers there, and connects to its remote MCP servers from there.
- Servers in Claude Code’s own configuration on the host: the host. The engine reads files such as
~/.claude.jsonin the SSH user’s home directory and a project’s.mcp.json, and starts their local servers and connects to their remote MCP servers from there.
managedMcpServers. Claude Desktop copies the plugin to the host, which needs SFTP, and the engine starts the server there. In a local Code session, the engine starts it on the device, so its command has to work on both.
Before you move a server, check the following:
- Your MCP keys: this works only with
isLocalDevMcpEnabledattrueandallowedPluginMcpServersunset. Otherwise, the session refuses a plugin’s local servers. - The last managed server: if you remove your last server from
managedMcpServers, Code sessions again load the MCP servers that users define in Claude Code’s own configuration. - Tool policy:
toolPolicydoesn’t move with the server. To keep it, see Plugin structure. - Users: with
installationPreferenceset to"required", users can’t turn off the plugin in the app, but they can in their own Claude Code settings. - Secrets: a secret in the plugin’s
.mcp.jsonfile reaches every device that installs the plugin and every host where a user starts a remote session. - The host’s policy: a
managed-mcp.jsonfile on the host, ordisableSideloadFlags,allowedMcpServers, ordeniedMcpServersin its Claude Code managed settings, or a setup in which your organization starts Claude Code on the host itself, can keep the server out.
Setting up your MCP servers on <host>… under it. This can happen after a session starts, and after a quit, once Claude Desktop rejoins the running engine. Claude Desktop is handing the engine the local servers that the user added under Settings > Developer. If the engine doesn’t get them in time, the message goes anyway, and the conversation shows This message went without your MCP servers. If you need them, send it again once they're connected. If the task needs those servers, have the user wait until Claude finishes responding, then send the message again. Requires Claude Desktop 4.4212.0 or later.
isLocalDevMcpEnabled, managedMcpServers, allowedPluginMcpServers, and deniedPluginMcpServers decide which of these servers a remote session loads, as they do for a local Code session (see Applied as managed policy). If the host has its own Claude Code managed settings, those take precedence over the Claude Code policy these keys produce (see Managed configuration on the remote host).
Enable SSH remote sessions
SetsshHostAllowlist in your managed configuration. It appears in the Code surface section of the in-app configuration window while Code is enabled.
While SSH remote sessions are off, the environment picker shows local sessions only, and any attempt to connect to a saved host is refused.
Each entry is an exact hostname, an IP address, or a
*. wildcard.
*.dev.example.commatchesdev.example.comand any subdomain of it at any depth.- Matching is case-insensitive and ignores a
user@prefix. - An IP address entry matches only that address.
- Entries do not restrict the port.
- A value that is not an array of strings counts as
[].
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.
A session’s jump hosts 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. Use network controls for that, and for a hard boundary.
For example, this key in Claude Desktop’s Linux configuration file, alongside your other settings, turns the feature on for one domain:
/etc/claude-desktop/managed-settings.json
.mobileconfig or registry policy, write the array as a JSON string as described under Value types. In a bootstrap response, the key sits inside the codeSurface object.
Jump hosts and the allowlist
Add each jump host, or bastion, that Claude Desktop checks tosshHostAllowlist, by the HostName that the device’s ~/.ssh/config gives for it. Add the jump hosts before devices update to Claude Desktop 3.1623.0 or later, or users can’t connect through them. To hold updates until devices have the new allowlist, see Auto-updates.
Claude 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 one that it 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, and the card’s details give that jump host’s HostName.
Find 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, listed or not.
- Run
ssh -Gwith a host that users connect to, for examplessh -G build01. Look for aproxyjumpline, or aproxycommandline written asssh -W %h:%p <host>. The command still counts with any of-l,-p,-J,-q,-v,-N,-T,-x, or-a, and the hosts after-Jare jump hosts too. If aproxycommandline runs a program other thanssh, add nothing for it. - Run
ssh -Gwith each jump host on that line, without any:port, and note thehostnamethat it prints. If the output for the first jump host on that line has a line of either kind, repeat this step with it. Ignore such a line in a later jump host’s output. - Add each hostname, or a wildcard that covers it, to the
sshHostAllowlistthat applies on the device. To tell which one applies, see Interaction with Claude Code managed settings on the device. Then have users quit and reopen Claude Desktop, because an open app keeps the list from a bootstrap server or the admin console until it restarts.
Interaction with Claude Code managed settings on the device
Claude Code has its ownsshHostAllowlist setting, which you can deploy on the device through a Claude Code managed-settings file or OS policy. The app resolves the two sources in this order:
sshHostAllowlistfrom the Claude Desktop configuration, when that configuration is delivered by an administrator: through machine-scoped device management (HKLMpolicy on Windows, a configuration profile on macOS,/etc/claude-desktopon Linux), through the Enterprise Admin Console, or by a bootstrap server the app trusts (abootstrapUrlset through device management or covered bytrustBootstrapDelivery; see Keys that require user consent). User-scope registry policy (HKCU) counts as applied locally.sshHostAllowlistfrom Claude Code’s managed settings on the device.sshHostAllowlistfrom a Claude Desktop configuration the user applied locally in the in-app configuration window.- Off.
sshHostAllowlist in Claude Code’s managed settings. That restricts SSH without an MDM profile taking ownership of the whole configuration (see Update keys and managed precedence).
To turn off Code sessions that run on the device, so that users work in SSH remote sessions, set disableDesktopLocalSessions to true in the Claude Desktop configuration that you deliver to devices, alongside your other settings. Claude Desktop then refuses to start or resume a Code session that runs on the device. Where a bootstrap server or the Enterprise Admin Console delivers the configuration, set the key in the server’s response or in the console. That configuration replaces the value from device management, even where it leaves the key out.
On devices where users applied the configuration locally, set the key of the same name in a Claude Code managed-settings file or OS policy on the device instead.
- If the device already has Claude Code managed settings, add the key to those and leave
parentSettingsBehavioras it is, set or unset. Changing it changes how those settings combine with the policy that Claude Desktop supplies. - If the device has none yet, also set
parentSettingsBehaviorto"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 on the Code page).
true in either one turns local Code sessions off.
Before you deploy disableDesktopLocalSessions, make sure that the sshHostAllowlist that applies on the device, by the order of its sources, allows the hosts that users need. While SSH remote sessions are off, a device that has disableDesktopLocalSessions set can start neither a local Code session nor an SSH remote session.
To keep HTML previews in SSH remote sessions from running the scripts in the previewed file, set disableRemotePreviewScripts to true in Claude Code’s managed settings on the device, by the same steps as for disableDesktopLocalSessions in those settings.
Pre-configure SSH connections for users
To put named SSH connections in each user’s environment picker, setsshConfigs in the Claude Desktop configuration that you deliver to devices, alongside your other settings. For example, these keys in Claude Desktop’s Linux configuration file allow one domain and add one connection:
/etc/claude-desktop/managed-settings.json
.mobileconfig or registry policy, write the sshConfigs array as a JSON string, as described under Value types. Where a bootstrap server delivers your configuration, put the key in its response, inside the codeSurface object. In that response, sshConfigs is one of the keys that require user consent.
- Allowed hosts:
sshConfigsdoesn’t turn SSH remote sessions on. A managed connection whose resolved hostname matches nosshHostAllowlistentry still appears, and Claude Desktop refuses to connect to it (see Your organization doesn’t allow this SSH connection). - Invalid entries: Claude Desktop ignores an entry with a missing or invalid field, such as
sshPortin quotes, and keeps the other entries. - What users can change: in the app, users can’t edit or delete a managed connection. They can add connections of their own, and a connection with the same
idin the user’s own Claude Code settings replaces the managed one.sshHostAllowlistapplies to those connections too.
sshConfigs entry. Put first a host that sshHostAllowlist allows and that all of these users can use.
On devices where users applied the configuration locally, set sshConfigs in Claude Code’s managed settings on the device instead, in a managed-settings file or OS policy. If Claude Desktop’s own configuration profile, registry policy, or Linux file held the key, it would govern the whole Claude Desktop configuration, and the app would stop reading the configuration that users applied (see Update keys and managed precedence). For how to add the key, and when to set parentSettingsBehavior, see the steps for disableDesktopLocalSessions under Interaction with Claude Code managed settings on the device. If you create a managed-settings file on Windows, users also lose WSL sessions until you allow them, as described under WSL sessions in Claude Code Desktop. The registry value that allows them, disableWslSessions, is one of the app-behavior keys.
- Connections from both sources: the environment picker shows the connections from both. Where both use the same
id, it shows the one from your Claude Desktop configuration. When Claude Desktop selects the firstsshConfigsentry for a user, it goes through Claude Code’s entries before those in your Claude Desktop configuration. - An invalid entry in Claude Code’s managed settings: Claude Code drops the whole
sshConfigskey from that file or policy, so every connection it lists disappears from the environment picker. The app shows no message, and the other keys in the managed settings still apply. If one of them isdisableDesktopLocalSessions, local Code sessions stay off, and a user with no other connection has no environment to select until they add one.
Devices that move to an admin console organization
A 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 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, adddisableDeploymentModeChooser 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.
After the move, sshHostAllowlist, sshConfigs, disableDesktopLocalSessions, sshTransport, and sshClientPath 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.
- Which hosts: the console’s
sshHostAllowlistapplies. 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),sshHostAllowlistfrom Claude Code’s managed settings on the device applies. With neither, SSH remote sessions are off. - Which SSH client: the console’s
sshTransportandsshClientPathapply. On a Windows device, a client that the console’ssshClientPathnames makes the connection only if it is Microsoft’s OpenSSH. Withsystem-openssh, SSH connections fail under any other client. A key that the console leaves unset takes its default under 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 setssystem-openssh. The device’s OpenSSH client makes it on a macOS or Linux device, even where the console setsbuiltin. - Connections and local sessions: the console’s
sshConfigsanddisableDesktopLocalSessionsapply, 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.
- Keep the device on its profile: set
deploymentModeto3p. 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 readdeploymentMode, also setdisableDeploymentModeChoosertotrue, as described under Restrict a device to one deployment mode. - Allow only your organization: set
forceLoginOrgUUIDto 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.
disableAutoUpdates, read the warning under Keep a device on its managed profile.
File downloads from the remote host
Users can download files from a remote session’s folders to their device. For example, they right-click a file in the Files pane and select Download file. TheremoteFileDownloads key sets which files they can download from an SSH host and from a Code session in Windows Subsystem for Linux (WSL).
The key requires Claude Desktop 5.1231.0 or later. Earlier versions don’t read the value and offer at most what limited allows. Before you put the key in a profile or policy that an earlier version reads, see Deploy remoteFileDownloads through device management.
Each value lets users download these files.
With the key unset, Claude Desktop applies
limited on a device where it finds one of these signs of an administrator, or can’t check for them:
- A profile or policy for Claude Desktop: a profile or policy in a managed location on the device, whichever keys it holds. A per-user profile or policy counts too.
- A bootstrap server or the Enterprise Admin Console: the device gets its configuration from a bootstrap server or the Enterprise Admin Console
- Claude Code’s managed settings on the device: a file, profile, or policy on the device in one of Claude Code’s policy locations. Server-managed settings don’t count, and neither do managed settings on the SSH host or in the WSL distribution.
SOFTWARE\Policies\Claude or SOFTWARE\Policies\ClaudeCode registry key counts too, in HKLM or HKCU. The directory for Claude Code’s managed-settings.json file counts too, even when the directory is empty.
On a device without any of these signs, an unset key means all. Before Claude Desktop 6.6395.0, an unset key means limited on such a device.
Under limited and all, Claude Desktop refuses a fixed list of file types that an operating system can run or act on when opened, such as .exe, .js, .ps1, and .jar. Claude Desktop goes by the file’s extension. Scripts such as .py and .sh aren’t on the list.
Where file downloads are off on a host without SFTP, limited and all both still allow text files up to 1 MiB, and nothing else.
none isn’t a security boundary. In Claude Desktop, users can still open the files that they can’t download, and Claude can still read them. To limit which files a user can reach on the host, review the SSH user’s rights there (see Account that a remote session runs under).
Claude Desktop reads and applies the value by these rules:
- Spelling: Claude Desktop ignores letter case. It treats a value that isn’t
limited,all,none, or empty asnone, so a mistypedallturns 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 setsdisableWslSessionstofalse. - When a change takes effect: an open app applies a new value from device management, the Enterprise Admin Console, or a bootstrap server without a relaunch, once a re-check reads it and a second check about 30 seconds later confirms it. A value set in the in-app configuration window applies no later than the relaunch that Apply Changes asks for.
- An unset key in an open app: the app goes from
alltolimitedat 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 keepslimiteduntil its next launch.
- Device management: users can’t edit a machine-scoped profile or policy. For when its value applies, see Deploy remoteFileDownloads through device management.
- Enterprise Admin Console: the console’s value applies unless the device has a profile or policy that holds this key and, beside it, nothing but the app-behavior keys and the keys treated like them. On a Windows device with no machine policy (
HKLM), a per-user policy (HKCU) counts as such a policy. Whoever can write toHKCUcan then setallover the console’snone(see A machine policy on Windows under Deploy remoteFileDownloads through device management). - Bootstrap response: put the key inside the
codeSurfaceobject. - 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.
Deploy remoteFileDownloads through device management
Connection settings are the keys that say where Claude Desktop gets inference or its configuration, such as the inference provider keys or the bootstrap keys. Before you deployremoteFileDownloads through device management, plan for these cases:
- Devices on a version before 5.1231.0: update all devices to Claude Desktop 5.1231.0 or later first. On earlier versions, on Windows and Linux, a profile or policy that holds this key can turn off other settings, connection settings included. On macOS, Claude Desktop doesn’t see the key. For each platform’s case, see Keys that an earlier version does not recognize.
- A profile or policy that holds your connection settings: set the key in that same profile or policy, and set the same value in the bootstrap response or the console too. Connection settings are outside the app-behavior keys and the keys treated like them. Where a profile or policy holds any key outside them, a bootstrap server or an Enterprise Admin Console that leaves
remoteFileDownloadsout overrides the profile’s value. The key then counts as unset, which meanslimitedon a device with a profile or policy. - A profile or policy that holds this key and, beside it, nothing but the app-behavior keys and the keys treated like them: the user’s or the console’s configuration stays in place. The profile’s value takes precedence over the value from the Enterprise Admin Console, a bootstrap server, or the in-app configuration window.
- A machine policy on Windows: while machine policy (
HKLM) holds this key, Claude Desktop applies nothing from a per-user policy (HKCU). Move what the per-user policy holds, connection settings included, into the machine policy.
Inference credentials on the remote host
The remote engine uses only the credential Claude Desktop passes in its environment. It ignores credentials already on the host, such as an AWS profile or application default credentials, and Claude Desktop copies no credential files there. Credential kinds that live in a file on the device are refused at session start.
When the configured credential is a refused kind, the session fails at session start, with the card SSH sessions can’t use your model provider settings.
When the remote engine’s credential expires during a turn, Claude Desktop obtains a new one on the device, by re-running a credential helper or using a sign-in’s refresh token, and sends it over the SSH connection.
Where the host’s 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.
The 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.
Managed configuration on the remote host
Most of the policy that Claude Desktop applies to a local Code session applies on the remote host too. The Code page describes how each key reaches Claude Code.disableEssentialTelemetryanddisableNonessentialTelemetry.otlpEndpoint,otlpProtocol,otlpHeaders,otlpResourceAttributes, andotlpContentCapture. Remote sessions appear in your collector under the sameservice.nameas local Code sessions. A collector atlocalhoston the device is not forwarded. AnotlpHeadersHelperruns on the device at session start, and the remote session keeps those headers for its lifetime.disabledBuiltinTools,builtinToolPolicy,autoModeEnabled, anddisableBypassPermissionsMode.allowedWorkspaceFolders, evaluated against the host’s filesystem.~is the SSH user’s home on the host,%VAR%entries are ignored, and Claude Desktop refuses to start a session in a directory outside every entry, so with a fleet value such as~/Documents/Claude, remote sessions start only under that path in the SSH user’s home. For an entry withmodeset toro, see Read-only folders on the remote host.blockReadsOutsideWorkingDirectories, evaluated on the host, so the working directories and the home directory it hides from shell commands are the SSH user’s there. Hiding files from shell commands needs the host’s sandbox dependencies (next item). On a host without those dependencies, or a Windows host, the key still confines Claude’s file tools. For shell commands, the key can only ask the user to approve those that Claude Code recognizes as reading outside the working directories, or whose command lines it can’t analyze. Files a user attaches to a remote session stay readable, except on a Windows host, where the session’s plugin files and attachments stay outside the file tools’ reach under this key.coworkEgressAllowedHosts, as Claude Code managed settings. The network and filesystem sandbox it produces withallowedWorkspaceFoldersdepends on the host having Claude Code’s sandbox dependencies installed (see Claude Code sandboxing). Without them, commands run unsandboxed. See Sandbox status on the remote host for the message the session shows.managedMcpServers, as the Claude Code managed setting that keeps the session from loading MCP servers that users define in Claude Code’s own configuration on the host. The managed servers themselves are reached from the device (see Where MCP servers run in a remote session).- Plugins from your allowed marketplaces, copied to the host. A plugin’s
hooksdirectory is not copied, so its hooks do not run in a remote session, and a plugin whose manifest declares hooks elsewhere is not copied at all. To run your organization’s hooks on the host, see Run a hook for every user.
Read-only folders on the remote host
On a Linux or macOS host, Claude Desktop appliesmode set to ro on an allowedWorkspaceFolders entry by supplying Claude Code with permission rules that deny edits under the entry’s path. The rules are Claude Code’s own checks on what Claude does, not file permissions on the host. Where a folder must not change, use the host’s file permissions to keep the SSH user from writing to it. Before Claude Desktop 2.31226.0, a folder with mode set to ro was allowed on the host but not read-only there.
A remote session doesn’t enforce mode in these cases:
- Windows hosts.
- Hosts with their own Claude Code managed settings: Claude Code ignores the rules, and the sandbox settings that Claude Desktop supplies with them, unless those settings set
parentSettingsBehaviorto"merge". Under"merge"the host’s own values still win where the two differ, sosandbox.enabledset tofalsethere leaves shell commands unsandboxed (see Interaction with Claude Code’s own managed settings). - An entry that is or contains the SSH user’s
~/.claudefolder, such as~: Claude Code keeps its own files there. List narrower folders.
- Claude’s file tools: they refuse to create or change a file under the path, even in bypass permissions mode. A writable entry listed inside a read-only one is read-only for them too.
- Shell commands that Claude runs with its Bash tool: Claude Code’s sandbox keeps them from writing under the path on a host where it runs, which on Linux needs Claude Code’s sandbox dependencies. The sandbox doesn’t cover commands listed in Claude Code’s
sandbox.excludedCommands, or a path that contains one of* ? [ ] ( ) { } | +or a double quote. It may not stop commands in a folder that is listed through a symbolic link, so list each read-only folder by its real path, and keep it outside writable entries. On a host where the sandbox doesn’t run, shell commands can still change the folder. For how the app reports that, see Sandbox status on the remote host.
Sandbox status on the remote host
Claude Desktop asks Claude Code on the host whether the sandbox from your Claude Desktop policy is turned on and running there. Requires Claude Desktop 2.26454.0 or later. IfcoworkEgressAllowedHosts contains * and allowedWorkspaceFolders is unset, your policy has no sandbox. For what Claude Desktop checks then, see Sandbox from the host’s managed settings. For a key that isn’t set, see Unset allowlist in Code sessions.
The answer is Claude Code’s own report, and Claude Desktop compares only part of it with your policy:
- Folders: Claude Desktop doesn’t compare the folders that the sandbox allows with the folders in your policy.
- Network hosts: if the answer lists the network hosts that the sandbox allows, and a network host from your policy is missing from the list, Claude Desktop reports the reason
overridden. Claude Desktop doesn’t check for network hosts that the remote host’s own settings add. Requires Claude Desktop 3.6556.1 or later.
sandbox.failIfUnavailable to true and parentSettingsBehavior to "merge" in the host’s Claude Code managed settings. With "merge", that setting applies together with your policy.
Find the message, or the reason your collector received, for the cause and the fix.
On a device where the local configuration file governs, Claude Desktop 4.16336.0 or later words these messages differently. They name
the sandbox from your inference configuration, not your organization’s sandbox or sandbox policy.overridden message and the fix for the message under Policy status on the remote host start at the same setting, parentSettingsBehavior. With Claude Desktop 3.6556.1 or later, a session that shows one of the two messages doesn’t add the other until the first no longer applies. Your collector still receives the event of the check whose message is held back, and the Sandbox row of /status still shows the sandbox’s state.
To check one session, have the user open it, wait until Claude has finished replying, and enter /status in the message box. Where your policy includes the sandbox, the Session info card shows what Claude Desktop last learned in a Sandbox row. Requires Claude Desktop 2.31226.0 or later. Find the value’s reason in the table of messages and reasons for the cause and the fix:
- On · Strict: no reason. Claude Code reports the sandbox from your policy turned on and running.
- Off · can’t start:
cannot_startorunsupported - Off:
overridden, and Claude Code reports no sandbox running - On · not fully applied:
overridden, and Claude Code reports a sandbox that Claude Desktop can’t match to your policy - Couldn’t check:
unknown
/status again after Claude’s reply.
With otlpEndpoint set, your collector receives a desktop_ssh_sandbox_check_failed event under the service.name value claude-desktop, unless otlpDesktopLogLevel is off. A session can send the event more than once, for example when the reason changes or after Claude Desktop restarts, so count distinct session_id values rather than events. The event carries these attributes:
reason:cannot_start,unsupported,overridden, orunknownsandbox_on:falsewhen Claude Code reports no sandbox running,truewhen it reports one that Claude Desktop can’t match to your policy, and absent when Claude Code doesn’t saysession_id: Claude Desktop’s ID for the sessionbackend_kind:ssh
Sandbox from the host’s managed settings
Where your policy has no sandbox, Claude Desktop 4.16336.0 or later asks Claude Code whether managed settings on the host turn a sandbox on, and reports one that isn’t running. Expect fewer reports than for a sandbox from your policy:- The session: it continues, and shell commands run outside the sandbox. To keep Claude Code from starting instead, set
sandbox.failIfUnavailabletotruein the same managed settings. - Reasons: only
cannot_startandunsupported, with the same messages,/statusvalue, and event as under Sandbox status on the remote host. The table’s rows for those two apply here too. Claude Desktop never reportsoverriddenorunknownhere. - 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 covers the profile too. /status: the Sandbox row appears only after Claude Desktop has reported that sandbox as not running. Aftercannot_start, the row can stay for the rest of that session, so check a fix in a new session.- 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.
- The event: it doesn’t say which sandbox it is about. From a device whose policy has no sandbox, it is about the host’s.
- A device where the local configuration file governs: Claude Desktop doesn’t ask there. The file governs where neither device management, the Enterprise Admin Console, nor a bootstrap server delivers the configuration. It still governs beside a device management profile that sets only app-behavior keys, such as
disableAutoUpdates.
Policy status on the remote host
To find a host that doesn’t apply your policy, Claude Desktop asks Claude Code on the host which permission rules apply there. In the answer, Claude Desktop looks for the deny and ask rules sent with your policy. Requires Claude Desktop 3.6556.1 or later. Keys that produce such rules include:builtinToolPolicyentries other thanallow- Scoped
disabledBuiltinToolsentries such asBash(curl *) - Read-only folders
- A managed MCP server’s
toolPolicyentries set toblockedorask
overridden message under Sandbox status on the remote host:
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.parentSettingsBehavior to "merge" in the host’s Claude Code managed settings, which otherwise replace your policy. See 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.”
With 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 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:
reason:ruleswhen Claude Code lists none of the sent rules as managed policy, orclaude_codewhen Claude Code itself reports that it left out the sent policysession_id: Claude Desktop’s ID for the sessionbackend_kind:ssh
- Any host: the answer is Claude Code’s own report from the host, not proof. A failed check blocks nothing.
- A host that lists at least one sent rule: the check passes as soon as Claude Code lists one sent rule as managed policy. That holds even if the host’s own managed settings supply that rule or replace other parts of your policy.
- A policy without a deny or ask rule: Claude Desktop shows no message and sends no event, unless Claude Code itself reports that it left the policy out.
- A Claude Code version on the host that doesn’t report its permission rules: Claude Desktop shows no message and sends no event.
- A restart of Claude Desktop: a session that showed the message doesn’t show it again until Claude Code has answered again.
Host requirements
The host needs the following.- Linux or macOS on x86_64 or arm64, or Windows on x64 or arm64.
- 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 build can load, and Claude Code’s system requirements still apply. To see the host’s C library and its version, run
ldd --versionon the host. For a musl host, see Alpine Linux and musl-based distributions. - An SSH server. On Windows, Microsoft’s OpenSSH Server; with other SSH servers, the engine does not survive a dropped connection.
- The SSH server’s SFTP subsystem. For a Linux or macOS host that lacks it, see Hosts without SFTP.
- 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 later it still connects to hosts already in use. The built-in client can’t connect where the server’s
sshd_configsetsMaxSessions 1. Raise that limit, for example to OpenSSH’s default of 10, or see Hosts that allow one session per connection. - The server doesn’t need to allow TCP, Unix socket, agent, or X11 forwarding. A
ProxyJumphost must allow TCP forwarding to the host’s SSH port. - A POSIX shell, or PowerShell on Windows.
giton the path, for git features.- 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
noexecdoesn’t work.
ssh and ssh-keygen). Claude Desktop runs the first ssh on the user’s PATH. On Windows, that 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.
To pin a specific OpenSSH installation instead, set sshClientPath (beta, Claude Desktop 1.46388.1 or later) to the program’s absolute path:
- Companion tools: Claude Desktop takes
ssh-keygenandssh-addfrom the same directory when they exist there. Otherwise it takesssh-keygenfrom the user’sPATH, andssh-addfrom the operating system’s own OpenSSH or else thePATH. - 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.
- Windows devices: the program must be an
.exefile, not a.cmd,.bat, or.ps1script. Stricter rules apply to its version and folder. See Client version under Prepare Windows devices for the OpenSSH client, and Use the OpenSSH client of Git for Windows. For a value that starts with%LOCALAPPDATA%\, see Use an OpenSSH client installed per user. - 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
sshprogram 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. - Every source of settings: a bootstrap server or the Enterprise Admin Console that leaves
sshClientPathout 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 thesshprogram 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.
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:
- macOS: allow
Claude.app/Contents/Helpers/claude-ssh-askpass, which is signed with the app. - Linux: allow
claude-ssh-askpassin theresourcesfolder of the app’s installation.
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.
A 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 Desktop makes the SSH connection by running the device’s OpenSSH client, so your own OpenSSH build’s Kerberos (GSSAPI), certificate, and ssh_config support handles authentication. The program is the one sshClientPath names, or else, on macOS and Linux, the first ssh on the user’s PATH, and it must be OpenSSH 7.6 or later. On Windows, the device’s OpenSSH client is the default in Claude Desktop 4.16336.0 or later, and only for hosts that are new to the device. See Prepare Windows devices for the OpenSSH client.
To use one client for every host, set sshTransport (beta) to system-openssh or builtin. Both apply on every platform. A change applies to new connections, and sessions that are already connected keep their client.
system-openssh: use the device’s OpenSSH client.builtin: use the app’s built-in SSH client. The app still runs the device’s OpenSSH tools to evaluate the user’s SSH configuration, look up host keys, and run the session’s terminal. Where it can’t runssh-keygen, connections to hosts whose keys it checks fail (see SSH host key verification failed). The in-app help and some cards call this client the built-in library.auto: the same as leaving the key unset.- Any other value: the app can’t read it, for example a misspelling, and the built-in client makes every connection.
- The device can’t start the OpenSSH client: while
sshTransportis unset orautoandsshClientPathis unset, the built-in client makes every connection until Claude Desktop restarts. If the device can’t startssh-keygeneither, connections fail at the host key check (see SSH host key verification failed). Requires Claude Desktop 2.7032.0 or later. - Claude Desktop is installed from the Microsoft Store: the built-in client makes the connection unless
sshTransportissystem-openssh. Withsystem-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’sknown_hostsfile.
Each side of a remote session needs its own network access.
- 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 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 reachdownloads.claude.aifails the session with a message saying the installer doesn’t include remote components for that platform. - 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.aiwhen 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). Blocking them does not affect the session.
Hosts without SFTP
A 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. These 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.- Image and document previews
- File attachments
- The Changes pane
- Plugins that Claude Desktop copies from the device
- File downloads, except text files up to 1 MiB: the download option is missing, or the download fails with
Couldn't download <name>
- Version: Claude Desktop 3.1623.0 or later on the device.
- 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.
- Shell: a POSIX shell on the host, with
shand the standard Unix tools such asls,cat, andrm. - Base64 decoder:
base64oropensslon the host. - SHA-256 tool:
sha256sum,shasum, oropensslon the host.
- “turn on SFTP”: the SSH server refuses SFTP. Enable
Subsystem sftpin the server’ssshd_config, and reload the SSH server. - “see why SFTP doesn’t start”: the SSH server accepts the request for SFTP, but SFTP never starts. In a terminal on the device, run
sftpwith the same host to see what stops it, then fix that on the host. - “let SFTP reach your home folder”: over SFTP, Claude Desktop didn’t find a folder it made under the SSH user’s home directory, as when SFTP is confined to a folder. Set up the SSH server so that SFTP sees the home directory at the same path as the login shell does.
- “refused the second sign-in”: SFTP isn’t at fault. The host refused what the user entered at the sign-in for file transfer, as it can when the user enters the same one-time code twice. Claude Desktop makes that second sign-in on hosts that allow one session per connection and from Windows devices that use the device’s OpenSSH client. If the host refuses it each time, have the user sign in by a method that needs no prompt, such as a key that an SSH agent holds. Before Claude Desktop 4.29.0, the connection fails.
Hosts that allow one session per connection
A device can connect to a host whosesshd_config sets MaxSessions 1 only when the device’s OpenSSH client makes the connection:
- macOS and Linux devices: the device’s OpenSSH client is the default. The device also needs Claude Desktop 3.1623.0 or later.
- Windows devices: the built-in client can’t connect to such a host. Before Claude Desktop 4.16336.0 it is the default, 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.
- 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. - 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
!. - 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.
Prepare Windows devices for the OpenSSH client
With Claude Desktop 4.16336.0 or later, a Windows device connects to each host that is new to it through the device’s OpenSSH client. A host that the device already connects to stays on the app’s built-in SSH client, with no action required. A new or re-imaged PC, or a virtual desktop that keeps no local app data, has no hosts in use, so every host is new to it. The same holds where the app’s record of earlier connections is damaged, because the app then resets it. A host that the device last connected to before Claude Desktop 1.46388.1 can count as new too, because earlier versions may have kept no record of it. Before Claude Desktop 4.16336.0, the built-in client makes every connection on Windows unlesssshTransport (beta) is system-openssh.
Choose 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.
- Leave
sshTransportunset: new hosts and new PCs use the OpenSSH client. - Keep the built-in client for every host: set
sshTransporttobuiltin. It holds for new hosts and new PCs too. IfsshClientPathstarts with%LOCALAPPDATA%\, remove it too, or SSH connections fail. See If you setsshTransportbelow. - Use the OpenSSH client for every host: set
sshTransporttosystem-openssh. To go back, setbuiltin, and ifsshClientPathstarts with%LOCALAPPDATA%\, remove it too. See If you setsshTransportbelow.
sshTransport unset or auto, the app still uses the built-in client in these cases, and in those under Host requirements:
- Hosts already in use: a host that the device has reached only with the built-in client stays on it. A host that the device first reaches while
builtinis set, or while it has no usable OpenSSH client, stays on the built-in client too. The same goes for a host first reached with a.ppkfile that the built-in client can read, or after Windows denied the sign-in helper’s start. - Configuration that hasn’t loaded: on a device that takes its configuration from the Enterprise Admin Console or a bootstrap server, the built-in client makes every connection at each launch until that configuration has loaded. If your bootstrap response sets
system-openssh, set it in the registry too, so that it holds in this case. - A record that can’t be read: while the app can’t read its own record of earlier connections, for example while a scanner holds the file, the built-in client makes that connection, whatever the host.
- PuTTY key files: a host whose identity file in the app is a PuTTY
.ppkfile that the built-in client can read, for example version 2, RSA, with no passphrase. - A blocked sign-in helper: a host that asks for a password or a one-time code, where Windows denies the app the start of its sign-in helper while a user waits for the connection. Where the helper is missing or gives no answer, or only
ssh.execan’t start it, the sign-in fails instead. - Another
sshprogram:sshClientPathnames an OpenSSH that isn’t Microsoft’s, or a Microsoft OpenSSH (Win32-OpenSSH) before 9.4. Unless the value starts with%LOCALAPPDATA%\, the app still runs the named program to read the user’s SSH configuration and to run the session’s terminal. With such a value and nosystem-openssh, the app doesn’t start the program, and SSH connections fail. - No usable OpenSSH client, and no
sshClientPath: the app uses the built-in client for every connection, whateversshTransportsays. See Devices without a usable client below. - An
sshClientPathprogram that gives no answer: the built-in client tries the connection, whateversshTransportsays. See Use the OpenSSH client of Git for Windows.
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: once the case has passed, its connections use the OpenSSH client.
A host under Hosts already in use moves to the OpenSSH client, or counts as new, in these cases. Once the OpenSSH client has connected to it, the host stays there. A connection that fails for another reason moves nothing.
- You set
system-openssh: once one connection has succeeded under it, the device keeps no host on the built-in client for having used it before, even if you remove the setting later. Cases such as PuTTY key files still apply. - A host key that the built-in client can’t check: the user’s
known_hostsfile has no plain entry for the host, andsshwould check its key against a certificate authority or anotherknown_hostsfile. The system-wide file is one such file. The host moves at its next connection. - 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.
- A record that is lost: on a re-imaged PC, or once the app has reset a damaged record, every host counts as new.
~/.ssh/config or known_hosts file can bring about the second or third case above.
While hosts stay on the built-in client:
- Host key checks: a host on the built-in client keeps that client’s host key check, which reads the user’s
known_hostsfile alone, not the system-wide one or aRevokedHostKeysfile. To move those hosts tossh’s own check, on a device with a usable OpenSSH client, setsshTransporttosystem-openssh. - Which client connected: search
ssh.login the logs directory formaster 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 forthis connection attempt uses: the line ends with the source of the choice, such ashost_keptfor a host already in use. Two devices can use different clients for the same host.
- 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 takes at least one more sign-in each time. On a Windows device, each sign-in is a separate
sshprocess. 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. - Key files that other accounts can read:
sshignores a private key file that any account but the user, SYSTEM, or Administrators can read. After a sign-in fails over one, Claude Desktop tightens the file’s access list where it can, and connects again.ssh.logrecords the list before and after. - 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_hostsfile. To distribute host keys instead, see SSH configuration on the device. - 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, setdisableSshSavedPasswordstotruein Claude Code’s managed settings on the device, by the steps fordisableDesktopLocalSessionsunder Interaction with Claude Code managed settings on the device. The dialog then has no checkbox, and the app stops using passwords that it saved earlier. It doesn’t delete them, and the user’s settings no longer offer to forget one. Removing the connection in the app still deletes its saved password. Deliver the setting before devices start to use the OpenSSH client. Neither the Enterprise Admin Console nor a bootstrap server can deliver it.
- Client version: with no
sshClientPath, a usable client prints a version that starts withOpenSSH_for_Windows_and is 9.4 or later. That is Microsoft OpenSSH, also called Win32-OpenSSH. Runssh -Vin a Command Prompt window on a device, signed in as the user. If that output is anything else, runssh.exe -Vin%SystemRoot%\System32\OpenSSHand in%ProgramFiles%\OpenSSH: Claude Desktop uses the first usable client that it finds, on thePATH, then in those two folders in that order. If you setsshClientPath, run that program with-Vinstead. WithsshTransportunset orauto, or in Claude Desktop 3.1623 and earlier, it has to pass the same test. Withsystem-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 or in Use an OpenSSH client installed per user. Each section names the Claude Desktop version that it requires. - Devices without a usable client: on a Windows device with no usable OpenSSH client and no
sshClientPath, the built-in client is used, whateversshTransportsays. If the device can’t runssh-keygeneither, connections fail at the host key check (see SSH host key verification failed). Add the OpenSSH Client optional feature in Windows and install pending Windows updates, or install Microsoft’s newer build. 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, setsshTransporttosystem-openssh. - Application control:
sshshows its prompts through three helper programs that ship with Claude Desktop,claude-ssh-askpass.exe,claude-ssh-broker.exe, andclaude-ssh-proxy.exe. Allow them in your application control policy by their publisher, Anthropic, PBC. Their folder changes with each update, and the files carry no product name or version. Allow thessh.exethat the version check found, and thessh-keygen.exebeside it, too. If Windows refuses to start the helpers, the app can’t ask for a key passphrase, andsshrefuses a host whose key isn’t on record. Sign-ins that need a password or a one-time code fail wheresshTransportissystem-openssh. Otherwise the built-in client makes them where the app itself can’t start the helper. See This computer won’t start Claude’s SSH sign-in helper. - Firewall and endpoint security: allow
ssh.exeoutbound wherever you allow Claude Desktop itself. WithsshTransportunset orautoand nosshClientPath, the built-in client takes over where Windows refuses to startssh.exe, but not wheressh.exestarts 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 tossh.exe. - While
ssh.execan’t reach the network: a host that stays on the built-in client still connects. For other hosts, setsshTransporttobuiltin, for Windows devices only, until you can allowssh.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 runsssh.exewith either client, so it stays blocked until then. - Key files:
sshdoesn’t read a PuTTY.ppkkey file. Unless the host stays on the built-in client for that file (see PuTTY key files above), export the key in OpenSSH format, and have the user select the exported file as the connection’s identity file. - SSH configuration files:
sshreads the user’s~/.ssh/configitself, and the connection fails ifsshrejects the file. In a Command Prompt window on a device, signed in as the user, run the usable client with-Gand a host, for examplessh -G build01.corp.example.com. Use the client’s full path if it isn’t the firstsshon thePATH.sshprints the host’s settings if it accepts the file, and an error if it doesn’t.
sshTransport:
- One value for all platforms:
sshTransporthas 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, sobuiltinmoves 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. - Devices with a bootstrap server: an available bootstrap response replaces the
sshTransportandsshClientPaththat device management sets in the registry, even if it leaves a key out. A response withoutsshTransportputs the device back on the default. A response withoutsshClientPathcancels 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 firstsshon the user’sPATHreads 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.sshClientPathhas no per-platform form either, and SSH connections fail on a macOS or Linux device that gets a Windows path. - Keys that a bootstrap response leaves out: where a response leaves out
sshTransportorsshClientPathand the registry sets it, Claude Desktop 4.29.0 or later writes a line tossh.login the logs directory each time it connects to an SSH host. The line containsthe device profile setsand names the key. - Devices on the Enterprise Admin Console: the console’s configuration replaces the registry’s
sshTransportandsshClientPath, 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’ssshClientPathreaches its macOS and Linux devices too, and SSH connections fail there under a Windows path. See Devices that move to an admin console organization. - When a change takes effect: at each host’s next connection. An open app takes 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 wait, at the latest, until the app is 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 describes. A host that connects before the reopened app has downloaded the configuration goes by the registry’s value with a bootstrap server. Where the registry sets none, and with the console, see Configuration that hasn’t loaded above. - What
builtinleaves 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’sknown_hostsfile stay. The access list of a private key file that the app tightened stays too, andssh.logrecorded that list as it was before. The user’s settings don’t offer to forget a saved password underbuiltin, but removing the connection deletes it.
SSH configuration on the device
Claude Desktop applies the host’s entry in the user’s~/.ssh/config. With the device’s OpenSSH client, ssh reads the entry itself, so settings such as ProxyJump, certificate host keys, and GSSAPI authentication apply, and the app still connects only to the resolved hostname that passed sshHostAllowlist. The built-in client applies the hostname, port, user, identity file, SSH agent, and ProxyCommand.
- For hosts behind a bastion, configure a
ProxyJumporProxyCommand.ProxyJumpworks 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. - A bastion must match
sshHostAllowlisttoo. See Jump hosts and the allowlist. - 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_hostsfile, unless the user’s own SSH configuration accepts new keys without asking. The app can’t show a prompt on every connection, 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-authorityentries are honored. A key that differs from the one on record for the host is refused, whatever the entry’sStrictHostKeyCheckingsays, unless another setting in the SSH configuration that applies to the host takes that check away, such asNoHostAuthenticationForLocalhost yesfor a host on a loopback address. - 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_hostsfile, such as/etc/ssh/ssh_known_hosts, or distribute a host certificate authority. Then setStrictHostKeyChecking yes, for example underHost *, in the client’s system-wide configuration file, such as/etc/ssh/ssh_config, which also governs other uses of that client, such asgitover SSH. Where the SSH configuration that applies to a host hasStrictHostKeyChecking yes, Claude Desktop doesn’t ask the user to trust such a key, andsshrefuses 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. The setting doesn’t bind the user. By OpenSSH’s own rules,sshreads the user’s~/.ssh/configbefore the system-wide file and keeps the first value it finds for a setting, so aStrictHostKeyCheckingline there applies in place of yours.sshalso accepts a key that the user adds to their ownknown_hostsfile, but underyesa connection from a terminal doesn’t record the key. A user who picks a host thatsshrefuses sees “Couldn’t connect to” followed by the host, with SSH host key verification failed under View details. - With the built-in client, the host’s key must already be in the device’s
~/.ssh/known_hostsas a plain entry. The app does not prompt to accept a new key and does not evaluate@cert-authorityentries, so have users connect once from a terminal before adding the host in the app. - 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.
- With the built-in client, a host reached through a
ProxyCommandgets 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. - With the built-in client, a host connects with its key unchecked when its entry sets
StrictHostKeyChecking no, setsUserKnownHostsFiletononeor/dev/null, and sets noRevokedHostKeys. The app shows no password or one-time code prompt for such a host, so it needs a key or SSH agent sign-in. - The connection times out after 30 seconds. A larger
ConnectTimeoutin the host entry extends it, and then applies to every try. - With the device’s OpenSSH client on macOS and Linux, a route through a jump host or a
ProxyCommandgets more time where noConnectTimeoutapplies, except to a host that allows one session per connection. When a user starts a session and the first try times out, the second try has 90 seconds. The time that a sign-in dialog for aProxyJumphost is open doesn’t count. A jump host’s push approval or security key touch counts, and so does anything that aProxyCommandwaits for. If a connection still times out while the user types or approves, set aConnectTimeoutthat leaves time for it. Reconnects that Claude Desktop starts on its own have 30 seconds a try, so a route that is always slow still needsConnectTimeout. Before Claude Desktop 4.4212.0, the second try has 30 seconds, and the dialog’s time counts.
- Forwarding:
ForwardAgent,ForwardX11,Tunnel,LocalForward,RemoteForward, andDynamicForward. - Kerberos delegation:
GSSAPIDelegateCredentials. The host doesn’t receive the user’s Kerberos ticket over this connection, even where the entry saysGSSAPIDelegateCredentials yes. AProxyJumphost is reached by a separatessh, which applies the jump host’s own entry. - Commands:
RemoteCommandandLocalCommand.
ssh. In Claude Desktop 4.16336.0 or later, that ssh leaves all of the settings above off too. Before Claude Desktop 4.16336.0, it applies the entry’s forwarding, Kerberos delegation, and LocalCommand settings, so with ForwardAgent yes in the entry it forwards the user’s SSH agent to the host.
Use the OpenSSH client of Git for Windows
To have Windows devices connect with an OpenSSH client that isn’t Microsoft’s, such as thessh.exe of Git for Windows, name the client in 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.
Name another client only on devices with one user, not on devices that several users share.
The client that you name makes the connection only if all of these conditions hold:
- Folder: the program is an
.exefile under Program Files or Program Files (x86). For a program under a user’sAppData\Localfolder, see Use an OpenSSH client installed per user. - Links: with every link and junction on the path followed, the program is still under Program Files or Program Files (x86), and Windows can resolve the path. Before Claude Desktop 4.4212.0, Claude Desktop checked only the path as written, so a client that a junction places outside Program Files stops connecting when the device updates.
- Version: the program is OpenSSH 8.5 or later. To check, run the program with
-Vin a Command Prompt window, for example"C:\Program Files\Git\usr\bin\ssh.exe" -V. sshClientPathandsshTransport:sshClientPathholds the program’s absolute path, andsshTransportissystem-openssh.- Source of both settings: both values come from machine policy under
HKLM\SOFTWARE\Policies\Claude, or from the bootstrap server that machine policy names. Values from a user’s own configuration file or fromHKCUdon’t count. Neither do values from an admin-console organization that a user’s own sign-in points the device to. - Trial start: in each run of Claude Desktop, before the first connection, Claude Desktop starts the program without connecting. The program must accept the arguments and options that Claude Desktop passes. The
ssh.exeof a current Git for Windows takes them.
sshClientPath and sshTransport, check for these devices:
- Devices without the program: with no file at the path that
sshClientPathnames, every SSH connection fails, whatever the value ofsshTransport, 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. - 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
sshClientPathout 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. ReturnsshClientPathonly to Windows devices, because SSH connections fail on a macOS or Linux device that gets a Windows path.
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.
With 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.
To 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 on the device names the condition too. The card says less in these cases:
- The source of both settings is what fails: the
Claude needs:line names only Microsoft’s OpenSSH, and the reason is inssh.log. - The path names no file: View details shows no
Claude needs:line, andssh.logsays only that the program is missing or can’t be run. Claude Desktop 4.16336.0 or later makes one exception, a path that runs through a user’sAppData\Localfolder, which gets such a line. Before Claude Desktop 4.16336.0, the card says as little for a path that isn’t absolute or isn’t an.exefile.
- SSH files: Claude Desktop points the client at the
.sshfolder of the user’s Windows profile. Git Bash on the same device can use another folder, so an SSH key or aknown_hostsentry that works in Git Bash can be missing for Claude Desktop. View details on a failed sign-in then names both folders. For system-wide settings the client readsetc\sshunder Git’s folder, not%ProgramData%\ssh. - Prompts: Claude Desktop asks for a password, a one-time code, or a key passphrase only on a direct connection. A connection is direct if the SSH configuration gives the host no jump host,
ProxyCommand,KnownHostsCommand,PKCS11Provider, orSecurityKeyProvider, and holds noMatch execline. Claude Desktop must also be able to confirm that the client uses the Windows profile’s.sshfolder. - Sign-ins where Claude Desktop can’t ask: only an SSH key that needs nothing typed signs in. A sign-in that needs a prompt fails with the card “Ask your IT administrator about your organization’s SSH program”, and
ssh.lognames the cause. - Application control: allow the client and the
ssh-keygen.exebeside the client in your application control policy, as well as Claude Desktop’s own sign-in helpers. Claude Desktop tests its prompts with thatssh-keygen.exe. While the test fails, only an SSH key that needs nothing typed signs in.
Use an OpenSSH client installed per user
To have Windows devices connect with an OpenSSH client that your packaging installs under each user’sAppData\Local folder, such as a per-user copy of Git for Windows, start the value of sshClientPath with %LOCALAPPDATA%\, for example %LOCALAPPDATA%\Programs\Git\usr\bin\ssh.exe. Such a value also needs sshTransport set to system-openssh. Requires Claude Desktop 4.4212.0 or later. An earlier version rejects the value, and every SSH connection on that device fails, so deliver the value only to devices that have updated.
Use a per-user client only on devices with one user, not on devices that several users share.
The client makes the connection only if it meets the Version, Source of both settings, and Trial start conditions in Use the OpenSSH client of Git for Windows, and all of these conditions too:
- Value in machine policy:
sshClientPathunderHKLM\SOFTWARE\Policies\Claudeis a string value (REG_SZ), not an expandable string (REG_EXPAND_SZ), and still starts with the text%LOCALAPPDATA%\. The tool that writes the value can expand the variable, so read the value back from the registry. - Same value from the bootstrap server: on a device with a bootstrap server, set the value in machine policy and in the response. The response replaces machine policy’s
sshClientPathandsshTransport, even if it leaves them out, so return both. Claude Desktop accepts the value from a response only if machine policy has the same value, character for character. In JSON, write each backslash twice. Return the value to Windows devices only, because SSH connections fail on a macOS or Linux device that gets it. - No value from the admin console: Claude Desktop rejects a value that the device gets from an admin console organization, even if machine policy has the same value.
- Real location: with every link and junction on the path followed, the client is in
AppData\Localunder the signed-in user’s profile folder, and Windows can resolve the path. Claude Desktop checks where the client is, not who can write to its folder, so make sure that no other user can. - No administrator rights: Claude Desktop runs without administrator rights. It has those rights when it is started as administrator, and it can have them when a service, a scheduled task, or an SSH session starts it. It also has them under the built-in Administrator account, and for an administrator on a device with User Account Control turned off.
sshTransport is unset, auto, or builtin, SSH connections fail with the card “Ask your IT administrator to fix the configured SSH program”. Claude Desktop’s built-in SSH client tries the connection in one case only, where the per-user client’s file exists but Windows won’t start it or it gives no answer.
To find the cause, select View details on the card and read the line that starts with ssh:.
- The line shows
%LOCALAPPDATA%: Claude Desktop rejected the value. In Claude Desktop 4.16336.0 or later, theClaude needs:line under it names the cause. Earlier versions show no such line, and the card says that the program is missing or can’t be run, even if it is there. Inssh.login the logs directory on the device, the last line withsshClientPath begins withnames the cause too. - The line shows a path without the variable: in the path,
~stands for the user’s profile folder. If no line under it starts withClaude needs:, the user has no.exefile at that path. A path in another account’s folder, such asC:\Windows\System32\config\systemprofile, means that the tool that wrote the value expanded the variable. - A
Claude needs:line that asks forsshClientPathto start with%LOCALAPPDATA%\: the value is a full path without the variable, in the registry or in the bootstrap response. Requires Claude Desktop 4.16336.0 or later. - A
Claude needs:line that asks for no junction or symbolic link leading out: a link leads out of the user’sAppData\Localfolder. Requires Claude Desktop 4.16336.0 or later. Before Claude Desktop 4.16336.0, this case and the one before it get a line that asks for Program Files, if the file is there. - The
ssh:line says thatsshClientPathis set, but could not be read: theClaude needs:line under it gives the cause. It asks for a plain string (REG_SZ) where the registry value is an expandable string, which Claude Desktop doesn’t read. It asks for a full local path where the value has a mistake, such as..or a second%. Requires Claude Desktop 4.16336.0 or later. - The
ssh:line says thatsshClientPathisn’t a local absolute path: the device runs a version before Claude Desktop 4.16336.0, which shows noClaude needs:line here. The causes are the same two. Before Claude Desktop 4.4212.0, every value that starts with%LOCALAPPDATA%\gets this line too.
- Application control: allow the client and the
ssh-keygen.exebeside the client in your application control policy. If your policy blocks the client, the built-in client tries the connection, andssh.logsays that the program gave no answer. If your policy blocks thatssh-keygen.exetoo, the connection fails with the card “Ask your IT administrator to fix the configured SSH program”. - Upgrades: if the name of the client’s folder contains a version number, change the value in machine policy and in the bootstrap response together with each upgrade. Prefer a folder name without a version to a junction, because through a junction Claude Desktop can stop reusing saved SSH passwords.
- Moved or mounted profiles: Claude Desktop looks in
AppData\Localunder the user’s profile folder, even where theLOCALAPPDATAvariable points elsewhere. It refuses a profile folder that is a UNC path, such as\\server\profiles\user. Where Windows mounts the profile from a profile container, test one device before you deliver the value to the others. - A changed or removed value: a running Claude Desktop can keep using the client after you change or remove the value. Have users quit and reopen Claude Desktop.
Troubleshoot
Your organization doesn’t allow this SSH connection
ThesshHostAllowlist 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. Which configuration source supplies the key on a device follows 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. The connection test, and the “Couldn’t connect to” card on the New session page, report the same denial as “Your organization’s settings do not allow this connection.” Before Claude Desktop 2.31226.0, the card’s title was “SSH isn’t allowed by your organization”.
For a jump host, read the warning under 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.
SSH to this device isn’t available
The 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”.
SSH sessions can’t use your model provider settings
The configured inference credential is one of the kinds listed as refused under 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. Before Claude Desktop 2.31226.0, the card’s title was “Remote sessions aren’t available with this inference setup”.SSH host key verification failed
The 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.
With 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 names, then on the user’s PATH.
- A blocked
ssh-keygen: where the device refuses to start thessh-keygenof its OpenSSH client, for example under an application control policy, allow thatssh-keygento run. Where a Windows or Linux device refuses to start the one beside the program thatsshClientPathnames, the connection fails with the card 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”. - A Windows device with no
sshClientPathand nossh-keygen.exeon the user’sPATH: on a device without Microsoft’s OpenSSH client, for example, the app uses the built-in client for every connection, whateversshTransportsays. Claude Desktop 6.6395.0 or later then runs thessh-keygen.exethat Git for Windows installs inProgram Files\Git\usr\bin. If Claude Desktop finds none or can’t run it, the user sees this failure or one of the cards under 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.
ssh-keygen.exe beside the program that sshClientPath names, if you set it. Then open a new Command Prompt or PowerShell window as the user who runs Claude Desktop, and run where.exe ssh-keygen. If neither place has ssh-keygen.exe, apply one of these fixes, then quit and reopen Claude Desktop:
- Install Microsoft’s OpenSSH client: install Win32-OpenSSH 9.4 or later, then run
where.exe ssh-keygenagain to confirm that it is on the user’sPATH. From that version, the client can also carry the connection (see Prepare Windows devices for the OpenSSH client). - Until you can install Win32-OpenSSH 9.4 or later, use another OpenSSH build: in the configuration that the affected Windows devices receive, set
sshClientPathto the absolute path of anssh.exethat hasssh-keygen.exein the same folder, such as the one in Git for Windows. On a device where that path doesn’t exist, SSH connections fail. Name another client only on devices with one user, not on devices that several users share. WithsshTransportset tosystem-openssh, thatssh.exealso carries the connection, and it has to meet the conditions in Use the OpenSSH client of Git for Windows.
StrictHostKeyChecking yes applies to the host, connecting from a terminal doesn’t record its key. Instead, check the key and add it to the system-wide known_hosts file, or give the host a certificate from your host certificate authority (see SSH configuration on the device).
Ask your IT administrator to set sshTransport to system-openssh
The built-in client made the connection, and the host needs the device’s OpenSSH client. Where the app can name a step, the card’s title gives it, and the card’s text gives the cause, either “Claude’s built-in SSH library can’t connect through a jump host (ProxyJump).” or “Claude’s built-in SSH library can’t check host keys against a certificate authority or another known_hosts file.”- “Ask your IT administrator to set sshTransport to system-openssh”: the built-in client is the device’s default, and the device has a usable OpenSSH client. Set
sshTransporttosystem-openssh. Claude Desktop 4.16336.0 or later doesn’t show this title: the OpenSSH client makes the connection instead. - “Ask your IT administrator to change sshTransport from builtin to system-openssh”: your configuration sets
sshTransporttobuiltin. Change it tosystem-openssh. - “Ask your admin to correct the sshTransport setting”: the app can’t read the value that your configuration gives
sshTransport, for example a misspelling, so the built-in client makes the connection. Correct the value. Requires Claude Desktop 2.37337.0 or later. - “Ask your IT administrator to install Microsoft OpenSSH 9.4 or newer and set sshTransport to system-openssh, then quit and reopen Claude”: the built-in client is the device’s default, and the app found no usable OpenSSH client on the device. Install the client, and set the key. Claude Desktop 4.16336.0 or later shows the next title instead.
- “Ask your IT administrator to install Microsoft OpenSSH 9.4 or newer, then quit and reopen Claude”: the app found no usable OpenSSH client on the device. Install the client. Before Claude Desktop 4.16336.0, this title appears only where
sshTransportissystem-openssh. - “Check your network or VPN and try again, or quit and reopen Claude”: the device’s configuration from the Enterprise Admin Console or a bootstrap server hasn’t loaded, so the built-in client made the connection. Requires Claude Desktop 4.16336.0 or later.
- “Quit and reopen Claude; if this comes back, ask your IT administrator to let Claude use the system OpenSSH client”: the device couldn’t start the OpenSSH client earlier in this run of the app (see Host requirements).
<host> needs a jump host, which Claude can't use here or Claude can't check <host>'s key here.
These 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.
Ask your IT administrator to fix the configured SSH program
The program thatsshClientPath 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 or 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.
This computer won’t start Claude’s SSH sign-in helper
Where the device’s OpenSSH client makes the connection, the operating system refused to start one of the helper programs that showssh’s prompts. Without them 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 on the card for the blocked program’s path and, where the operating system gave one, the error code. Allow the program:
- Windows devices, with Claude Desktop 2.37337.0 or later: allow the helper programs as described under Prepare Windows devices for the OpenSSH client, then have the user try again. With Claude Desktop 4.16336.0 or later and
sshTransportunset orauto, the built-in client connects instead where the app itself can’t start the helper. The host then stays on that client. - macOS and Linux devices, with Claude Desktop 4.16336.0 or later: allow
claude-ssh-askpassin the folder that View details names, then have the user try again. On these devices the built-in client never connects instead. Withspawn EACCESon a Linux device, check too that the folder isn’t mountednoexec.
Claude’s SSH sign-in helper isn’t working on this computer
On 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::
it is missing: reinstall Claude Desktop, then have the user try again.its test run failed,its test run timed out,its test run sent no answer, orits test run could not be started: have the user try again. If the card comes back, have them quit and reopen Claude Desktop, which an update installed under the running app can call for. If it still comes back, reinstall the app.ssh seems unable to start it, though Claude can: allowsshto 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.it cannot reach Claude because ssh's stderr is redirected, for example by a wrapper script: look for a wrapper aroundssh. Change the program thatsshClientPathnames, or thesshfirst on the user’sPATH, so that it leaves standard error untouched.
This computer’s ssh refuses a backslash or dollar sign in user names
On a macOS or Linux device where the device’s OpenSSH client makes the connection, that client refuses the user name on its command line because the name has a\ or a $, as in DOMAIN\user. Claude Desktop passes such a name to ssh in a configuration file that it writes, and shows this card where it can’t. Select View details on the card and match the last line:
needs the Include line in this file to use a full path: the system’sssh_config, or a file read through it, has anIncludewith a relative path. The line names the file. Write that path in full, starting with/.couldn't find which system ssh_config this ssh readsorcouldn't write that file: have the user try again. With the second, the app couldn’t write the file in a private temporary folder.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 fromProxyJumpto aUserline in the jump host’s ownHostblock.
Setup on the host fails after SSH connects
SSH connected, but Claude Desktop couldn’t place or start the remote server or the engine on the host. Select View details on the failure card to read the app’s own message, which can end with a code in square brackets. Match the code, or the start of the message:[SFTP_UNAVAILABLE]: the host’s SSH server refused the SFTP subsystem. EnableSubsystem sftpin the server’ssshd_config, or see what a session needs under Hosts without SFTP.[SESSION_LIMIT]: the host’s SSH server refused to open another session on the connection. If the host has to keep itsMaxSessionslimit, the device’s OpenSSH client has to make the connection. See Hosts that allow one session per connection for the version and the setting that each platform needs. Otherwise, raiseMaxSessionsin the server’ssshd_config, for example to OpenSSH’s default of 10, and reload the SSH server.[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, runsftpwith the same host, for examplesftp user@build01.corp.example.com, 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.[EXEC_NO_INPUT]: the host’s SSH server ran the app’s command but passed it no input, which setup and the session’s own link need. In a terminal on the device, runecho hi | sshwith the same host andcat, for exampleecho hi | ssh user@build01.corp.example.com cat. It printshion a host that passes input. Have the host’s administrator let commands run over SSH receive input.[ENOSPC]or[EDQUOT]: a disk is full, or a quota is used up. In a message that starts withCouldn'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 gives the space the app needs.Unsupported remote platform: the host’s operating system or processor isn’t among those under Host requirements.[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. Runldd --versionon the host to check. Before Claude Desktop 2.37337.0, the message has no code and starts withCouldn't install the Claude CLI on the remote (cli archive).[NO_INSTALL_RESULT]: the remote server’s install step printed no result. A home directory mountednoexecis one cause, where the host’s error message doesn’t sayPermission deniedorOperation 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.[SETUP_DIR_NOEXEC]: on a host without SFTP, the host didn’t run a test program from~/.claude/remotein the SSH user’s home directory, so the app didn’t copy the remote server. A home directory mountednoexecand a restricted login shell are two causes. Have the host’s administrator let the SSH user run programs from~/.claude/remote.[SERVER_NOT_RUNNABLE]: the remote server didn’t run from~/.claude/remotein the SSH user’s home directory, or stopped before it answered. A home directory mountednoexecis 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.[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 fromdownloads.claude.ai, because a proxy can give the same answer.[DOWNLOAD_FAILED], orCouldn't prepare the deploy locallywith 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 blocksdownloads.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, which bundles the remote server and the engine for those hosts.[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 answersdownloads.claude.aiwith a block page, allow that address or use the offline installer, as for[DOWNLOAD_FAILED].
[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>.
In 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.
[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 Ask <host>'s administrator to let SSH commands receive 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.
Before Claude Desktop 4.29.0, the [EXEC_NO_INPUT] card is titled <host> doesn't pass input to commands run over SSH.
[SETUP_DIR_NOEXEC] and [SERVER_NOT_RUNNABLE] require Claude Desktop 3.1623.0 or later. Their card is titled Ask <host>'s administrator to let Claude's server run.
[DOWNLOAD_BUSY] requires Claude Desktop 4.4212.0 or later, and its card is titled Try again in a few minutes. Before Claude Desktop 4.4212.0, the card for [SETUP_DIR_NOEXEC] and [SERVER_NOT_RUNNABLE] is titled Claude's server didn't run on <host>.
[DOWNLOAD_GOT_WEB_PAGE] requires Claude Desktop 4.16336.0 or later, and its card is titled Sign in to your network, or ask IT to allow the download. From the same version, the [DOWNLOAD_FAILED] card is titled Check your internet connection, or ask IT to allow the download.
Git commands fail with Read-only file system
Git commands fail with this error when the user opens the session in a subfolder of a Git repository, on a Linux host where the sandbox from your policy runs. Git’s message then reads, for example,Unable to create '<path>/.git/index.lock': Read-only file system. To find out whether the sandbox runs there, see Sandbox status on the remote host.
The sandbox lets shell commands that Claude runs with its Bash tool write in the folder the session was opened in, and the repository’s .git folder is outside that folder. Of these commands, the ones that write to the .git folder fail, such as git add and git commit. Have the user start a new session at the top of the repository.
These cases are covered elsewhere:
- An
allowedWorkspaceFoldersentry withmodeset toro: see Read-only folders on the remote host - A message with
unable to unlink old: see A git command fails withunable to unlink old - The other places that the sandbox lets these commands write to: see Filesystem isolation and the
allowedWorkspaceFoldersrow under Applied as managed policy