[BUG] Claude Desktop SSH remote crashes on every prompt, ssh.log not generated
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?
Claude Desktop SSH remote mode crashes on every prompt, even a simple "hello".
Environment:
- Claude Desktop: 1.7196.0
- Plan: Max
- macOS on Apple Silicon
- Remote server: Ubuntu VPS
- SSH user: non-root user
claude - Remote ccd-cli: 2.1.138
What happens:
- I create an SSH remote connection from Claude Desktop to my VPS.
- The SSH connection succeeds.
- I select
/home/claude/workspaceas the remote workspace. - I trust the workspace.
- I send a simple message like
hello. - Claude Code immediately crashes with:
Claude Code process exited with code 1
What I already ruled out:
- This is not the root-user issue. I previously saw the
--dangerously-skip-permissions cannot be used with root/sudo privilegeserror, then created a non-rootclaudeuser. - SSH works from Mac Terminal:
ssh vittorio-claude "whoami && pwd"
returns:
claude
/home/claude
- Workspace access works.
- Read/write test inside the workspace works:
touch .claude_write_test && rm .claude_write_test && echo ACCESS_OK
returns:
ACCESS_OK
- The workspace is accessible through
/home/claude/workspace. - I cleared remote caches:
/root/.claude/remote
/home/claude/.claude/remote
- The crash still happens even on a simple
hello.
Diagnostic issue:
Earlier, the useful error appeared in:~/Library/Logs/Claude/ssh.log
After the clean non-root setup, ssh.log is no longer being created, so I cannot find the new stderr output. I searched the other Claude logs, but only found unrelated GitHub authentication messages and VM startup logs.
Expected behavior:
Claude Desktop SSH remote mode should connect to the VPS and allow Claude Code to run normally in the selected remote workspace.
Actual behavior:
Claude Code crashes immediately after successful SSH connection and workspace selection.
Question:
How can I capture the actual remote ccd-cli error when ssh.log is missing, and is there a known workaround for this SSH remote crash?
What Should Happen?
Claude Desktop should connect to the remote Ubuntu VPS through SSH, open the selected workspace, and allow Claude Code to respond normally to prompts.
After selecting /home/claude/workspace and trusting the workspace, sending a simple message like hello should not crash Claude Code.
Error Messages/Logs
Claude Code crashes immediately after sending any prompt through the SSH remote connection.
Visible error in Claude Desktop:
Claude Code crashed
Claude Code process exited with code 1
Earlier root-user error was:
--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons
That was resolved by switching to a non-root SSH user called `claude`, but the crash still happens.
Verified from Mac Terminal:
ssh vittorio-claude "whoami && pwd"
Output:
claude
/home/claude
Workspace access test:
ssh vittorio-claude "cd /home/claude/workspace && touch .claude_write_test && rm .claude_write_test && echo ACCESS_OK"
Output:
ACCESS_OK
I also cleared:
/root/.claude/remote
/home/claude/.claude/remote
After the clean non-root setup, `~/Library/Logs/Claude/ssh.log` is no longer being created, so I cannot capture the new stderr line.
Steps to Reproduce
- Open Claude Desktop on macOS.
- Create an SSH remote connection to an Ubuntu VPS using a non-root user.
- Select
/home/claude/workspaceas the remote workspace. - Trust the workspace when prompted.
- Send a simple message such as
hello. - Claude Code immediately crashes with
process exited with code 1.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
no
Claude Code Version
Claude 1.7196.0 (2dbd78) 2026-05-12T05:34:40.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Additional context:
I am using Claude Desktop with a Max plan, not a direct API-key workflow.
The SSH connection works correctly from macOS Terminal:
ssh vittorio-claude "whoami && pwd"
Output:
claude
/home/claude
Workspace permission test also succeeds:
ssh vittorio-claude "cd /home/claude/workspace && touch .claude_write_test && rm .claude_write_test && echo ACCESS_OK"
Output:
ACCESS_OK
After clearing the logs and reproducing the crash, ~/Library/Logs/Claude/ssh.log was not recreated. Searching the available logs mostly showed unrelated GitHub authentication messages and local VM startup entries, but no useful stderr line for the remote SSH crash.
The crash happens only inside Claude Desktop Code SSH remote mode, after successful connection and workspace trust.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗