SSH remote sessions in Claude Desktop on 3P changedthird-party/claude-desktop/ssh-remote-sessions
Nearest release: v2.1.330, published under 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 20 Nov 2026 18:29 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 20 Nov 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+5added
Lines−5removed
From line
190
where the diff opens
First seen
28 Aug 2026
this site's first read of the page
Recorded edits42to this page, all time
The whole hunk
from line 190, old and new numbered
/
from line 190
190190On devices where users applied the configuration locally, set [the key of the same name](https://code.claude.com/docs/en/settings-reference#disabledesktoplocalsessions) in a [Claude Code managed-settings file](https://code.claude.com/docs/en/settings#settings-files) or OS policy on the device instead.
191191
192192* If the device already has Claude Code managed settings, add the key to those and leave `parentSettingsBehavior` as it is, set or unset. Changing it changes how those settings combine with the policy that Claude Desktop supplies.
193* If the device has none yet, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create. Without `"merge"`, the new managed settings replace the policy that Claude Desktop supplies to Claude Code on the device (see [Interaction with Claude Code's own managed settings](https://claude.com/docs/third-party/claude-desktop/code.md#interaction-with-claude-code%E2%80%99s-own-managed-settings) on the Code page).
193* If the device has none yet, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create. Without `"merge"`, the new managed settings replace the policy that Claude Desktop supplies to Claude Code on the device (see [Interaction with Claude Code's own managed settings](https://claude.com/docs/third-party/claude-desktop/code.md#interaction-with-claude-code%E2%80%99s-own-managed-settings) on the Code page). Once the device has these managed settings, an unset [`remoteFileDownloads`](#file-downloads-from-the-remote-host) means `limited` on that device.
194194
195195If you set the key in both Claude Desktop's configuration and Claude Code's managed settings, `true` in either one turns local Code sessions off.
196196
from line 510
510510
511511The app also uses the built-in client in these cases, and on Windows in the cases under [Prepare Windows devices for the OpenSSH client](#prepare-windows-devices-for-the-openssh-client):
512512
513* **The device can't start the OpenSSH client**: while `sshTransport` is unset or `auto` and `sshClientPath` is unset, the built-in client makes every connection until Claude Desktop restarts. If the device can't start `ssh-keygen` either, connections fail at the host key check (see [SSH host key verification failed](#ssh-host-key-verification-failed)). Requires Claude Desktop 2.7032.0 or later.
513* **The device can't start the OpenSSH client**: while `sshTransport` is unset or `auto` and `sshClientPath` is unset, the app uses the built-in client for every connection until Claude Desktop restarts. If the device can't start `ssh-keygen` either, connections fail at the host key check (see [SSH host key verification failed](#ssh-host-key-verification-failed)). Requires Claude Desktop 2.7032.0 or later.
514514* **Claude Desktop is installed from the Microsoft Store**: the built-in client makes the connection unless `sshTransport` is `system-openssh`. With `system-openssh`, the device's OpenSSH client makes the connection, but the app can't show its prompts for a password, a one-time code, or a key passphrase, or its question about a host key that isn't on record. Use a sign-in method that needs no prompt, such as a key held by the SSH agent, and have users connect to each host once from a terminal before adding it in the app, so that the host's key is in the user's `known_hosts` file.
515515
516516Claude Desktop writes the following into the SSH user's home directory on the host. Each user who connects gets their own copy.
from line 614
614614* **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 `ssh` process. They stay open together, so a per-user login limit on the host has to leave room for them. Each process connects to the host by name, so a name that stands for several machines, such as a load balancer or round-robin DNS, must send all connections from one device to the same machine. Claude Desktop repeats a typed password or key passphrase itself for the other sign-ins of that connection. A host that asks for a one-time code, a push approval, or a security key touch asks again at each sign-in.
615615* **Key files that other accounts can read**: `ssh` ignores a private key file that any account but the user, SYSTEM, or Administrators can read. After a sign-in fails over one, Claude Desktop tightens the file's access list where it can, and connects again. `ssh.log` records the list before and after.
616616* **Host keys that aren't on record**: where the app can show a prompt, it asks the user whether to trust the key, and records a trusted key in the user's `known_hosts` file. To distribute host keys instead, see [SSH configuration on the device](#ssh-configuration-on-the-device).
617* **Saved passwords**: when the session's host asks for the account password, the sign-in dialog has a **Remember password for `<host>`** checkbox. To turn saved passwords off, set [`disableSshSavedPasswords`](https://code.claude.com/docs/en/desktop#managed-settings) to `true` in Claude Code's managed settings on the device, by the steps for `disableDesktopLocalSessions` under [Interaction with Claude Code managed settings on the device](#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.
617* **Saved passwords**: when the session's host asks for the account password, the sign-in dialog has a **Remember password for `<host>`** checkbox. To turn saved passwords off, set [`disableSshSavedPasswords`](https://code.claude.com/docs/en/desktop#managed-settings) to `true` in Claude Code's managed settings on the device, by the steps for `disableDesktopLocalSessions` in those settings under [Interaction with Claude Code managed settings on the device](#interaction-with-claude-code-managed-settings-on-the-device). 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.
618618
619619Check what the device's OpenSSH client needs on Windows:
620620
from line 758
758758
759759With the built-in client, the connection test reports this failure as "Host key changed or not trusted". With that client, connections also fail at the host key check when the app can't run `ssh-keygen`, even when the host's key is in `known_hosts`. The built-in client looks up the host's key with `ssh-keygen`, which it looks for first in the folder of the program that [`sshClientPath`](https://claude.com/docs/third-party/claude-desktop/configuration#sshclientpath) names, then on the user's `PATH`.
760760
761* **A blocked `ssh-keygen`**: where the device refuses to start the `ssh-keygen` of its OpenSSH client, for example under an application control policy, allow that `ssh-keygen` to run. Where a Windows or Linux device refuses to start the one beside the program that `sshClientPath` names, the connection fails with the card [Ask your IT administrator to fix the configured SSH program](#ask-your-it-administrator-to-fix-the-configured-ssh-program) instead of this failure. The connection test then reports "The SSH program your organization configured can't be used".
762* **A Windows device with no `sshClientPath` and no `ssh-keygen.exe` on the user's `PATH`**: on a device without Microsoft's OpenSSH client, for example, the app uses the built-in client for every connection, whatever `sshTransport` says. Claude Desktop 6.6395.0 or later then runs the `ssh-keygen.exe` that Git for Windows installs in `Program Files\Git\usr\bin`. If Claude Desktop finds none or can't run it, the user sees this failure or one of the cards under [Ask your IT administrator to set sshTransport to system-openssh](#ask-your-it-administrator-to-set-sshtransport-to-system-openssh). Where the user sees one of those cards, the connection test reports "Host key can't be checked". Before Claude Desktop 6.6395.0, the user sees this failure whether or not the device has Git for Windows.
761* **A blocked `ssh-keygen`**: where the device refuses to start the `ssh-keygen` of its OpenSSH client, for example under an application control policy, allow that `ssh-keygen` to run. Where a Windows or Linux device refuses to start the `ssh-keygen` beside the program that `sshClientPath` names, the connection fails with the card [Ask your IT administrator to fix the configured SSH program](#ask-your-it-administrator-to-fix-the-configured-ssh-program) instead of this failure. The connection test then reports "The SSH program your organization configured can't be used".
762* **A Windows device with no `sshClientPath` and no `ssh-keygen.exe` on the user's `PATH`**: if the device also has no usable OpenSSH client, such as Microsoft's, the app uses the built-in client for every connection, whatever `sshTransport` says. Claude Desktop 6.6395.0 or later then runs the `ssh-keygen.exe` that Git for Windows installs in `Program Files\Git\usr\bin`. If Claude Desktop finds none or can't run it, the user sees this failure or one of the cards listed under [Ask your IT administrator to set sshTransport to system-openssh](#ask-your-it-administrator-to-set-sshtransport-to-system-openssh). Where the user sees one of those cards, the connection test reports "Host key can't be checked". Before Claude Desktop 6.6395.0, the user sees this failure whether or not the device has Git for Windows.
763763
764764To check a Windows device on which connections fail, look for `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:
765765
No line in this hunk matches that.