[BUG] SSH connection shows "connected" but doesn't appear in environment dropdown

Open 💬 2 comments Opened Feb 15, 2026 by sduygun

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When adding an SSH connection in Claude Code Desktop (macOS), the app successfully tests the connection and displays "SSH connection connected", but the connection does not appear in the environment dropdown afterwards. It seems like the connection details are not being persisted.

Steps to Reproduce
Open Claude Code Desktop on macOS
Click the environment dropdown (where Local / VS Code options are)
Select "+ Add SSH connection"
Fill in the details:
Name: Atlas
SSH Host: bilge@atlas
Port: (left empty, defaults from ~/.ssh/config)
Identity File: (left empty, defaults from ~/.ssh/config)
Submit — app shows "SSH connection connected"
The new connection does not appear in the environment dropdown
Expected Behavior
After a successful connection test, the SSH connection should be saved and visible in the environment dropdown for future use.

Actual Behavior
The connection test passes but the connection is not persisted. No entry is written to config.json, claude_desktop_config.json, or any other config file in ~/Library/Application Support/Claude/.

Environment
OS: macOS (Darwin 25.2.0)
Claude Code Desktop version: includes Claude Code CLI 2.1.34
SSH config: Host is defined in ~/.ssh/config with IdentityFile, User, and ServerAliveInterval
Remote machine: Claude Code CLI 2.1.42 is installed and working via terminal SSH
Additional Context
Manual SSH to the remote host works fine (ssh atlas connects successfully)
Running claude --version on the remote host returns 2.1.42
Restarting the Desktop app does not resolve the issue
Inspected all JSON config files under ~/Library/Application Support/Claude/ — no SSH connection data found anywhere
Bunu doğrudan https://github.com/anthropics/claude-code/issues/new adresine yapıştırabilirsin.

What Should Happen?

After a successful connection test, the SSH connection should be saved and visible in the environment dropdown for future use.

Actual Behavior
The connection test passes but the connection is not persisted. No entry is written to config.json, claude_desktop_config.json, or any other config file in ~/Library/Application Support/Claude/.

Environment
OS: macOS (Darwin 25.2.0)
Claude Code Desktop version: includes Claude Code CLI 2.1.34
SSH config: Host is defined in ~/.ssh/config with IdentityFile, User, and ServerAliveInterval
Remote machine: Claude Code CLI 2.1.42 is installed and working via terminal SSH
Additional Context
Manual SSH to the remote host works fine (ssh atlas connects successfully)
Running claude --version on the remote host returns 2.1.42
Restarting the Desktop app does not resolve the issue
Inspected all JSON config files under ~/Library/Application Support/Claude/ — no SSH connection data found anywhere

Error Messages/Logs

Steps to Reproduce

Open Claude Code Desktop on macOS
Start a new session
Click the environment dropdown (where "Local" and "VS Code" options are listed)
Select "+ Add SSH connection"
Enter the following:
Name: hostname
SSH Host: username@hostname
Port: (left empty)
Identity File: (left empty)
Click connect/save
App displays "SSH connection connected" (success message)
Go back to the environment dropdown — the "Atlas" connection is not listed

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Claude Code Desktop: v1.1.2512 Claude Code CLI (local): 2.1.38 Claude Code CLI (remote/atlas): 2.1.42 OS: macOS (Darwin 25.2.0)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗