claude-code - 💡(How to fix) Fix [BUG] Claude Desktop SSH remote crashes on every prompt, ssh.log not generated

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  • This is not the root-user issue. I previously saw the --dangerously-skip-permissions cannot be used with root/sudo privileges error, then created a non-root claude user. Earlier, the useful error appeared in: 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?

Error Messages/Logs

Visible error in Claude Desktop: Earlier root-user error was:

Fix Action

Fix / Workaround

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?

That was resolved by switching to a non-root SSH user called claude, but the crash still happens.

Code Example

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.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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:

  1. I create an SSH remote connection from Claude Desktop to my VPS.
  2. The SSH connection succeeds.
  3. I select /home/claude/workspace as the remote workspace.
  4. I trust the workspace.
  5. I send a simple message like hello.
  6. 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 privileges error, then created a non-root claude user.
  • 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

  1. Open Claude Desktop on macOS.
  2. Create an SSH remote connection to an Ubuntu VPS using a non-root user.
  3. Select /home/claude/workspace as the remote workspace.
  4. Trust the workspace when prompted.
  5. Send a simple message such as hello.
  6. 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.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING