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

SSH remote sessions in Claude Desktop on 3P changedthird-party/claude-desktop/ssh-remote-sessions

Nearest release: v2.1.333, published an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 30 Nov 2026 17:39 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Nov 2026 18:07 UTC.

Upstream edited
Recorded here
Lines+149added
Lines−5removed
From line 17 where the diff opens
First seen 28 Aug 2026 this site's first read of the page
Recorded edits54to this page, all time

### Symbolic links in allowed workspace folders on the remote host ## Limit how long engines run with no connection ### Set the time limit on the host ### When the count toward the time limit starts ### What users see on a host with a time limit ### Work that starts on the host with no one at the device ### Claude Code fails to start because of the settings file on the host

The whole hunk

from line 17, old and new numbered
/
lines
from line 17
1717 
1818The engine keeps running on the host through a dropped SSH link, device sleep, or the user quitting Claude Desktop. It finishes the current turn, or stops at a permission prompt, then idles. While Claude Desktop is disconnected or closed, an idle engine can still start a turn by itself, for example when scheduled work comes due (a `/loop` task, say) or when a background command ends. An engine that starts while [`scheduledTasksEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#scheduledtasksenabled) is `false` starts without Claude Code's scheduling tools, so `/loop` can't schedule work there. An engine that already runs keeps those tools until Claude Desktop replaces it. Whatever else can start a turn still can, a background command's end included. While Claude Desktop is disconnected or closed, a credential that it passed is not refreshed, so a turn that outlives that credential, or starts after it expires, can fail with an authentication error (see [Keep a long turn running while Claude Desktop is disconnected](#keep-a-long-turn-running-while-claude-desktop-is-disconnected)). The engine also keeps running through a restart of the app for an update.
1919 
20On a Linux host with [a limit on time with no connection](#limit-how-long-engines-run-with-no-connection), a remote server from Claude Desktop 6.6395.0 or later ends the engine at the limit, and a turn that is still running is lost.
21 
2022When the user reopens the session after a quit, Claude Desktop rejoins the engine or replaces it, unless it refuses to start the session:
2123 
2224* **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.
from line 46
4446* The host restarts.
4547* 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.
4648* 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.
47* 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.
49* 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. On a Linux host, you can [set a shorter time](#limit-how-long-engines-run-with-no-connection). The shorter time requires Claude Desktop 6.6395.0 or later on each device that connects.
4850* 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](https://code.claude.com/docs/en/desktop#files-and-processes-on-the-remote-machine). There the engine is called Claude Code, and the remote server the helper.
4951 
5052While Claude Desktop is disconnected, the remote server keeps the most recent output of each running engine in a 16 MiB buffer. It drops older output, and the engine keeps running.
from line 441
439441 
4404421. **Add the profile.** Create it on the host, in `~/.aws` or in the folder that `inferenceBedrockAwsDir` names: a `config` file, a `credentials` file, or both. Claude Desktop copies nothing there. Claude Code runs on the host as the user and must be able to read the files. Where security software on the host keeps it out of `~/.aws`, the engine can't sign in: agree an exception or another folder with your security team. Keep a single sign-on profile in `~/.aws`, on the host and on the device: AWS keeps its token cache in `~/.aws/sso/cache`, whichever folder holds the profile. Give the profile the name that you set in [`inferenceBedrockProfile`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockprofile). Set that key: with no name, and `~/.aws` as the folder, SSH sessions are refused unless a launcher starts Claude Code. With another folder and no name, the engine uses the profile `default`.
4414432. **Limit its permissions.** Give the profile access to Amazon Bedrock only. The `aws` commands that Claude runs on the host use the same profile. The files on the host decide which AWS account receives the engine's requests and which `credential_process` program runs, outside the sandbox.
4423. **Keep the files separate.** Use regular files, not links, in a folder of their own directly under the home directory, such as `~/.aws`, that holds no project files. Only the user who signs in should be able to read or write the files and their folder. Claude's file-editing tools are blocked for everything under that folder. Where [Claude Code's sandbox](#sandbox-status-on-the-remote-host) runs, it also keeps sandboxed shell commands from writing to the `config` and `credentials` files. Don't rely on that in a session that can write to their folder, such as one opened in the home directory. Your policy includes the sandbox where you set `allowedWorkspaceFolders`. Without that key, the sandbox can be off (see [Applied as managed policy](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy)). The block is Claude Code's own check, not a file permission: Claude can read these files, and other programs that run as the user can change them. Keep sessions from starting in the home directory itself with [`allowedWorkspaceFolders`](#managed-configuration-on-the-remote-host), and prefer credentials that expire. If the profile names a `credential_process` program, keep that program where the user can't write.
4443. **Keep the files separate.** Use regular files, not links, in a folder of their own directly under the home directory, such as `~/.aws`, that holds no project files. Only the user who signs in should be able to read or write the files and their folder. Claude's file-editing tools are blocked for everything under that folder. Where [Claude Code's sandbox](#sandbox-status-on-the-remote-host) runs, it also keeps sandboxed shell commands from writing to the `config` and `credentials` files. Don't rely on that in a session that can write to their folder, such as one opened in the home directory. Your policy includes the sandbox where you set `allowedWorkspaceFolders`. Without that key, the sandbox can be off (see [Applied as managed policy](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy)). The block is Claude Code's own check, not a file permission: Claude can read these files, and other programs that run as the user can change them. Keep sessions from starting in the home directory itself with [`allowedWorkspaceFolders`](#managed-configuration-on-the-remote-host), and prefer credentials that expire. If the profile names a `credential_process` program, the safest place for the program is one that the user can't write to, because Claude Code runs the program outside the sandbox. At the least, keep the program where no other user can change it, and outside the folder the session was opened in, every folder in `allowedWorkspaceFolders`, and the [other places](https://code.claude.com/docs/en/sandboxing#filesystem-isolation) where the sandbox lets commands write.
4434454. **Sign in, if the profile needs it.** The user signs in to AWS from a terminal on the host, which for single sign-on needs version 2 of the AWS CLI there. Claude Desktop can't sign in on the host or renew the sign-in there. When it expires, turns fail until the user signs in on the host again.
444446 
445447The engine signs in only through the named profile. An instance role on the host isn't enough by itself: the profile must name its own source of credentials. The host must also reach the AWS hosts that the profile signs in through (see [Inference provider](https://claude.com/docs/third-party/claude-desktop/telemetry.md#inference-provider)). On a host that reaches AWS only through a proxy, a profile that assumes a role doesn't sign in, even where a terminal on that host does.
from line 491
489491* `disableEssentialTelemetry` and `disableNonessentialTelemetry`.
490492* `otlpEndpoint`, `otlpProtocol`, `otlpHeaders`, `otlpResourceAttributes`, and `otlpContentCapture`. Remote sessions appear in your collector under the same `service.name` as local Code sessions. If the collector's address is `localhost` on the device, Claude Desktop doesn't send the collector settings to the host. An `otlpHeadersHelper` runs on the device at session start, and the remote session keeps those headers for its lifetime.
491493* `disabledBuiltinTools`, `builtinToolPolicy`, `autoModeEnabled`, and `disableBypassPermissionsMode`.
492* [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#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. List the folders that users work in on the host rather than `~` or a folder that contains it, such as `/home`. The SSH user's home holds SSH keys and shell startup files, which Claude can read in a listed folder, and setting `mode` to `ro` on `~` doesn't keep Claude from changing them. For an entry with `mode` set to `ro`, see [Read-only folders on the remote host](#read-only-folders-on-the-remote-host).
494* [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#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 a folder that users reach through a symbolic link, see [Symbolic links in allowed workspace folders on the remote host](#symbolic-links-in-allowed-workspace-folders-on-the-remote-host). List the folders that users work in on the host rather than the SSH user's home or a folder that contains it, such as `/home`. The SSH user's home holds SSH keys and shell startup files, which Claude can read in a listed folder, and setting `mode` to `ro` on `~` doesn't keep Claude from changing them. For an entry with `mode` set to `ro`, see [Read-only folders on the remote host](#read-only-folders-on-the-remote-host).
493495* [`blockReadsOutsideWorkingDirectories`](https://claude.com/docs/third-party/claude-desktop/configuration#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.
494496* `coworkEgressAllowedHosts`, as Claude Code managed settings. The network and filesystem sandbox it produces with `allowedWorkspaceFolders` depends on the host having Claude Code's sandbox dependencies installed (see [Claude Code sandboxing](https://code.claude.com/docs/en/sandboxing)). Without them, commands run unsandboxed, unless you [refuse such sessions](#refuse-sessions-on-a-host-without-a-working-sandbox). See [Sandbox status on the remote host](#sandbox-status-on-the-remote-host) for the message the session shows.
495497* `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](#where-mcp-servers-run-in-a-remote-session)).
from line 548
546548* **Files in the `hooks` directory**: files that a hook wrote there on the device, such as logs or state, are copied with it, and whoever administers the host can read them. The copy stays on the host for at least 30 days after its last use, or for good if no session starts there again, and of the settings above, count on the device's alone to stop the copying. Have hooks write outside the plugin's directory, for example in [`${CLAUDE_PLUGIN_DATA}`](https://code.claude.com/docs/en/plugins/components#path-variables-and-persistent-data).
547549* **A plugin that is turned off or removed on the device**: new sessions start without it. Remote sessions that are already running keep its hooks until you end their engines, as above.
548550 
551### Symbolic links in allowed workspace folders on the remote host
552 
553If users reach a folder on the host through a symbolic link, check where the link leads before you list either one in [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#allowedworkspacefolders). A link that you didn't create can lead to a folder that you don't want to allow. Claude Desktop leaves out some listed links, such as a link inside another listed folder, and refuses to start a session in a folder that only such a link allows.
554 
555Choose what to list by the folder that the link leads to:
556 
557* **An SSH user's home, or a folder that contains one, such as `/home`**: don't list the link or the folder that the link leads to. List the folders that users work in inside their homes, such as `~/projects`. Write each path from `~`, not from the link.
558* **A hidden folder in an SSH user's home, such as `~/.ssh`, or a folder inside that hidden folder**: don't list the link or the folder that the link leads to. Have users work in a folder that isn't hidden and isn't their home, such as `~/projects`, and list that folder.
559* **Any other folder that you want users to work in**: list that folder instead of the link.
560 
549561### Read-only folders on the remote host
550562 
551563On a Linux or macOS host, Claude Desktop applies `mode` set to `ro` on an [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#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.
from line 592
580592| - | - | - | - |
581593| Shell commands on `<host>` are running outside your organization's sandbox, which couldn't start | `cannot_start` | The sandbox is turned on but isn't running, for example because a Linux host lacks the sandbox dependencies | Install the [dependencies](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2) on the host, then start a new session |
582594| Your organization's sandbox isn't running on `<host>`. Claude Code has no sandbox for that operating system | `unsupported` | The host runs an operating system that Claude Code reports no sandbox for, such as Windows | Use a macOS or Linux host |
583| Your organization's sandbox policy isn't fully applied on `<host>`, so shell commands there may run outside it | `overridden` | Claude Code managed settings on the host replace your policy, even when they say nothing about the sandbox, or they turn the sandbox off or loosen it | Set `parentSettingsBehavior` to `"merge"` in the host's managed settings, and remove `sandbox` values there that conflict with your policy |
595| Your organization's sandbox policy isn't fully applied on `<host>`, so shell commands there may go beyond its limits | `overridden` | Claude Code managed settings on the host replace your policy, even when they say nothing about the sandbox, or they turn the sandbox off or loosen it | Set `parentSettingsBehavior` to `"merge"` in the host's managed settings, and remove `sandbox` values there that conflict with your policy |
584596| No message | `unknown` | Claude Code gives no answer that Claude Desktop can read | In a session on that host, ask Claude to run the two commands under [Confirm commands run inside the sandbox](https://code.claude.com/docs/en/sandboxing#confirm-commands-run-inside-the-sandbox) |
585597 
598Before Claude Desktop 6.28899.2, the `overridden` message says `so shell commands there may run outside it`.
599 
586600> [!NOTE]
587601>
588602> On a device where the [local configuration file governs](#sandbox-from-the-host%E2%80%99s-managed-settings), Claude Desktop 4.16336.0 or later words these messages differently. They name `the sandbox from your inference configuration`, not your organization's sandbox or sandbox policy.
from line 698
684698The check fails if Claude Code lists none of those rules as managed policy, or itself reports that it left out the sent policy. The session continues and shows this message, unless it already shows the `overridden` message under [Sandbox status on the remote host](#sandbox-status-on-the-remote-host):
685699 
686700```text theme={null}
687Your organization's policy isn't fully applied on <host>. Ask your admin to check parentSettingsBehavior in that host's Claude Code managed settings.
701Your organization's policy isn't fully applied on <host>. Ask your admin or whoever manages that machine to check its Claude Code managed settings. Setting "parentSettingsBehavior": "merge" there usually fixes this, unless it's already set.
688702```
689703 
704Before Claude Desktop 6.28899.2, the message ends with `Ask your admin to check parentSettingsBehavior in that host's Claude Code managed settings`.
705 
690706> [!NOTE]
691707>
692708> 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.
from line 727
711727* **A Claude Code version on the host that doesn't report its permission rules**: Claude Desktop shows no message and sends no event.
712728* **A restart of Claude Desktop**: a session that showed the message doesn't show it again until Claude Code has answered again.
713729 
730## Limit how long engines run with no connection
731 
732On a Linux or macOS host, a remote server and its engines stop after 30 days with no connection from Claude Desktop. On a Linux host, you can set a shorter limit as root, as a number of minutes in a file. The limit applies to every SSH user of the host. Requires Claude Desktop 6.6395.0 or later on each device that connects, because a remote server from an earlier version ignores the file.
733 
734At the limit, the remote server stops and ends its engines and nearly all of what they started, such as a `tmux` server or a `nohup` job from a shell command. The limit doesn't end Claude Desktop's terminal tabs or what the user started from a login outside Claude Desktop. A remote server that is killed outright, for example when the host runs out of memory, applies no limit from then on. An idle engine under it exits within seconds, and an engine in the middle of a turn runs until that turn ends.
735 
736A program that runs under the SSH user's account can outlast the limit, so the limit isn't a security boundary. To bound how long the credential on the host is useful, choose [a credential that expires](#inference-credentials-on-the-remote-host).
737 
738### Set the time limit on the host
739 
740> [!WARNING]
741>
742> When you write `/etc/claude-desktop-ssh/settings.json` or lower the number in it, each remote server that has already had no connection for longer than the number stops within two minutes and ends its engines. A turn that is running there is lost. Tell your users first, and try the limit on a host where no one else has work running.
743 
744If another account owns `/etc/claude-desktop-ssh` or has been able to write to it, [replace the folder whole](#claude-code-fails-to-start-because-of-the-settings-file-on-the-host) instead of running the commands below. Their first line mends the folder's owner and mode and leaves what the folder holds.
745 
746To set a limit of 60 minutes, run these commands as root in a terminal on the host:
747 
748```bash theme={null}
749install -d -m 0755 -o root -g root /etc/claude-desktop-ssh &&
750rm -f /etc/claude-desktop-ssh/settings.json.new &&
751printf '%s\n' '{"unattendedLimitMinutes": 60}' > /etc/claude-desktop-ssh/settings.json.new &&
752chown root:root /etc/claude-desktop-ssh/settings.json.new &&
753chmod 0644 /etc/claude-desktop-ssh/settings.json.new &&
754mv -fT /etc/claude-desktop-ssh/settings.json.new /etc/claude-desktop-ssh/settings.json
755```
756 
757The rename at the end keeps a remote server from reading a half-written file. If you adapt these commands, keep the `rm -f` line and the `-T` option. If another account has been able to write to the folder, they stop a symbolic link left there from sending root's write to another file or folder.
758 
759Running remote servers apply the number within a minute.
760 
761If the file doesn't meet these conditions, remote servers on the host start no new engines until root fixes it, and users see a [card about the settings file](#claude-code-fails-to-start-because-of-the-settings-file-on-the-host):
762 
763* **Value**: a whole number of minutes, with no quotes. 1 to 14 count as 15, and more than 43200 (30 days) counts as 43200. `0`, a negative number, a fraction, and an empty file are errors.
764* **Owner and mode**: root owns the file and every folder above it, and other accounts can read them but can't write to them, as with mode `0644` on the file and `0755` on the folders.
765* **File system**: the file and the folders above it are on the machine's own disk or in the container's image, not on a network share.
766 
767While the file can't be used, a remote server that had already read a number from it keeps applying that number. One that had read none applies only the 30 days.
768 
769Where SSH logins start in a container, write the file in that container's own `/etc`. A remote server in the container reads the container's own `/etc`, so a file on the host doesn't set a limit there.
770 
771To confirm the limit, connect once from Claude Desktop and wait a minute. Then run this command as the SSH user in a terminal on the host:
772 
773```bash theme={null}
774for log in ~/.claude/remote/run/*/remote-server.log; do echo "$log"; grep '\[Server\].*claude-desktop-ssh/settings.json' "$log" | tail -n 1; done
775```
776 
777Under the log of each device that has connected, the command prints the last line that the device's remote server wrote about the file:
778 
779* **`sets an unattended limit of 60 minutes`**: the limit is in force for that device.
780* **`nobody has used this helper`**: the limit ended that remote server. The next remote server that starts for the device moves this log to `remote-server.log.old`, so after a reconnection look for the line there.
781* **`can't be used`**: see [Claude Code fails to start because of the settings file on the host](#claude-code-fails-to-start-because-of-the-settings-file-on-the-host).
782* **`No unattended limit is set`**: the remote server found no file, or no `unattendedLimitMinutes` key in it. It ignores a key that it doesn't know, so check the spelling. A log shows the remote server's last run, so a line from before you wrote the file says nothing about the file.
783* **No line under a log**: that remote server comes from a Claude Desktop version earlier than 6.6395.0 and ignores the file. One that was running before the device updated keeps running until Claude Desktop replaces it at a later connection, or until you end it (see [Files and processes on the remote machine](https://code.claude.com/docs/en/desktop#files-and-processes-on-the-remote-machine)).
784 
785To turn the limit off, run `rm -f /etc/claude-desktop-ssh/settings.json` as root in a terminal on the host. Running remote servers go back to 30 days within a minute.
786 
787### When the count toward the time limit starts
788 
789The minutes count from when the host notices that no Claude Desktop is connected to the remote server:
790 
791* **After the user quits Claude Desktop**: the count starts at once.
792* **After a closed lid or a lost network**: the count starts late, by about 5 to 16 minutes in Anthropic's tests with the SSH server's default settings.
793* **While Claude Desktop stays connected**: the count doesn't run, even with no one at the device. Each reconnection, such as when the device wakes or the app launches, starts the count over.
794 
795### What users see on a host with a time limit
796 
797Claude Desktop tells users about the limit in the session:
798 
799* **At the start of a session**: one line, for example "This host stops Claude Code after 1 hour when no one is connected."
800* **After the limit ends a running task**: a card titled `Claude Code on <host> stopped before finishing`, with the same line. The turn that was running is lost, with its shell commands and background tasks, and the conversation is kept. To continue, the user selects **Try again** or sends a message.
801 
802### Work that starts on the host with no one at the device
803 
804While Claude Desktop is running and connected, it can start new work on the host with no one at the device, for example:
805 
806* **Automatic messages**: a message that no person sent, such as one from another session, can start an engine on the host again.
807* **Waiting messages**: a message that the user typed and that was still waiting to be sent goes out at the next launch or reconnection.
808* **Interrupted tasks**: Claude Desktop can start a task again at its own launch and tell it to continue. It does so after it ended in some way other than the user quitting it or an orderly shutdown, such as a crash, a power cut, or its own restart for an update, which doesn't count as a quit here. That holds for a task that stopped on the host while the app wasn't running or during that launch. The task keeps the session's permission mode, so in Auto mode or bypass permissions mode Claude Code can run commands without asking the user. A task that Claude Desktop knows the limit ended waits for the user instead.
809 
810The limit ends that work too, once no one has been connected for that long again.
811 
812An engine can also start a turn by itself while no Claude Desktop is connected, for example when a `/loop` task comes due (see [How a remote session works](#how-a-remote-session-works)). Such a turn doesn't hold the count off or start it over, so if it still runs at the limit, it ends with the engine.
813 
714814## Host requirements
715815 
716816The host needs the following.
from line 1367
12671367`[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>`.
12681368 
12691369`[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`.
1370 
1371### Claude Code fails to start because of the settings file on the host
1372 
1373The remote server can't use `/etc/claude-desktop-ssh/settings.json` on the host, or a folder above it, so it starts no new engines until root fixes the file. The card is titled `Couldn't start Claude Code on <host>` and reads "Send the details to your IT team so they can fix the settings file on `<host>`." Terminal tabs still work, and engines that are already running keep running. Requires Claude Desktop 6.6395.0 or later.
1374 
1375Under **View details**, the card names the file and says what is wrong. Compare that with the conditions under [Set the time limit on the host](#set-the-time-limit-on-the-host). If only the file's contents are wrong, such as the number, write the file again with the commands there and your own number. Where the details name a file system, no change of owner or mode cures it. If they say that `/` or `/etc` is on that file system or shows uid 65534, or name a 9p share, the repair below doesn't cure it either, so stop here. Follow the details, or remove the file as under [Set the time limit on the host](#set-the-time-limit-on-the-host).
1376 
1377If the details speak of an owner, a mode, a symbolic link, or a file system, say that the file isn't a regular file, or name a file or folder outside `/etc/claude-desktop-ssh` other than `/` and `/etc`, another account may have been able to change what the folder holds. Replace the folder whole, as root in a terminal on the host.
1378 
1379If the details speak of the owner or mode of `/` or `/etc`, first fix that folder's owner and mode. Change the folder alone, without `-R`. Leave every other folder that the details name as it is.
1380 
1381The warning under [Set the time limit on the host](#set-the-time-limit-on-the-host) applies to this write too. Make a new folder beside the old one, with your own number in place of 60:
1382 
1383```bash theme={null}
1384case $(stat -f -c %t /etc) in ef53 | 58465342 | 9123683e | 2fc12fc1) ;; *) echo "these lines are not for this kind of /etc"; false ;; esac &&
1385mkdir -m 0755 /etc/claude-desktop-ssh.new &&
1386printf '%s\n' '{"unattendedLimitMinutes": 60}' > /etc/claude-desktop-ssh.new/settings.json &&
1387chmod 0644 /etc/claude-desktop-ssh.new/settings.json
1388```
1389 
1390If `mkdir` says that `/etc/claude-desktop-ssh.new` exists, an earlier repair left it: rename it and run these commands again. If they print `these lines are not for this kind of /etc`, stop there: on an overlay or a share, as in most running containers, `mv` can copy and delete the folder instead of renaming it. Rebuild the image, or remake that layer, so that root makes the folder and its files as at the first setup.
1391 
1392For no limit, also run `rm -f /etc/claude-desktop-ssh.new/settings.json`. With no file, only the 30 days apply. What you don't put in the new folder is gone from the path after the swap. If your administrators keep other files in the old folder, put them into `/etc/claude-desktop-ssh.new` now, from your own copies and not from the old folder.
1393 
1394Then swap the folders. The old one is kept as `/etc/claude-desktop-ssh.old`:
1395 
1396```bash theme={null}
1397test -d /etc/claude-desktop-ssh.new &&
1398mv -fT /etc/claude-desktop-ssh /etc/claude-desktop-ssh.old &&
1399mv -fT /etc/claude-desktop-ssh.new /etc/claude-desktop-ssh && echo swapped
1400```
1401 
1402If these commands print neither `swapped` nor an error, the new folder wasn't there: go back to the first commands and follow every step from there again, your other files too. If `mv` can't overwrite `/etc/claude-desktop-ssh.old`, an earlier repair left it: rename it and run the three lines again. If `mv` says `Device or resource busy`, something is mounted on the folder: unmount it, take it out of `/etc/fstab`, and run the three lines again. If `mv` says that there is no `/etc/claude-desktop-ssh`, run the last line.
1403 
1404Restart any container or sandbox into which the folder is mounted: it holds the old one until then. To remove the old folder, as root:
1405 
14061. If `ls -ld /etc/claude-desktop-ssh.old` shows a link, `rm /etc/claude-desktop-ssh.old`, with no slash at the end, is all.
14072. Otherwise shut it: `[ ! -L /etc/claude-desktop-ssh.old ] && chown root:root /etc/claude-desktop-ssh.old && chmod 0700 /etc/claude-desktop-ssh.old`.
14083. Unmount whatever `grep ' /etc/claude-desktop-ssh\.old' /proc/self/mountinfo` lists, or the removal empties it.
14094. Once you no longer need it, and after the host's next restart, run `rm -rf -- /etc/claude-desktop-ssh.old`.
1410 
1411> [!WARNING]
1412>
1413> Don't run `chown` or `chmod` on the existing file, even where the details suggest it, because an account that has it open can still write to it.
12701414 
12711415### Git commands fail with Read-only file system
12721416 
Feedback