claude-code - 💡(How to fix) Fix [BUG] SSH-Remote crashes on first input with "process exited with code 1" (Windows 11, Node 22) [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#55529Fetched 2026-05-03 04:51:01
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Bug: Claude Code crashes on first input in SSH-Remote session OS: Windows 11 (PowerShell) Node: v22.22.2 (downgraded from v24 per forum tip — didn't help) Claude Code: v2.1.126 SSH Target: Hetzner Cloud Ubuntu 24.04 Workaround tried: Accepted ToS via CLI separately — didn't help Reproducer: Connect via SSH-Remote, enter any text → crash

Workarounds Tried (none worked)

  • Downgraded Node from v24.15.0 to v22.22.2 per https://github.com/anthropics/claude-code/issues/<NR> (forum post: "Workaround for me, just downgraded node from 24 to 22 and done!")
  • Started claude CLI separately in PowerShell, accepted ToS, exited cleanly. Then opened Desktop App SSH-Remote → still crashes.
  • Restarted Claude Code Desktop App multiple times.
  • Restarted Windows.
  • Set ExecutionPolicy to RemoteSigned for current user.
  • Verified MCP servers config — only built-in github MCP shows "failed", but disabling/ignoring it doesn't help.

Code Example

Claude Code ist abgestürzt
Versuche, deine Nachricht erneut zu senden. Falls das Problem weiterhin besteht, teile uns Feedback mit, damit wir es untersuchen können.

Claude Code process exited with code 1
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?

Bug: Claude Code crashes on first input in SSH-Remote session OS: Windows 11 (PowerShell) Node: v22.22.2 (downgraded from v24 per forum tip — didn't help) Claude Code: v2.1.126 SSH Target: Hetzner Cloud Ubuntu 24.04 Workaround tried: Accepted ToS via CLI separately — didn't help Reproducer: Connect via SSH-Remote, enter any text → crash

What Should Happen?

Claude Code should successfully connect via SSH-Remote to a remote Linux server and remain stable when the user enters their first prompt or interacts with the workspace.

Error Messages/Logs

Claude Code ist abgestürzt
Versuche, deine Nachricht erneut zu senden. Falls das Problem weiterhin besteht, teile uns Feedback mit, damit wir es untersuchen können.

Claude Code process exited with code 1

Steps to Reproduce

Environment

  • OS: Windows 11
  • Claude Code: v2.1.126
  • Node.js: v22.22.2 (also reproduced with v24.15.0)
  • npm: 10.9.7
  • PowerShell: Windows PowerShell (default)

Steps to Reproduce

  1. Install Node.js v22.22.2 from nodejs.org
  2. Install Claude Code Desktop App for Windows
  3. Generate SSH key locally: ssh-keygen -t ed25519 -C "user@machine" -f $HOME.ssh\id_ed25519 -N '""'
  4. Copy public key (id_ed25519.pub) to remote Linux server's ~/.ssh/authorized_keys (or test via Hetzner Cloud Console)
  5. Verify SSH works manually in PowerShell: ssh root@<server-ip> → connects successfully, no password prompt
  6. In Claude Code Desktop App, open SSH connection dialog:
    • Name: "MyServer"
    • SSH-Host: root@<server-ip>
    • SSH-Port: 22 (or empty)
    • Identity file: C:\Users<user>.ssh\id_ed25519
  7. Click "Connect"
  8. Accept "Trust this folder" prompt for the remote workspace
  9. Optional: navigate to a project folder and select it
  10. Type ANY text in the Claude prompt (e.g. "hello")
  11. Press Enter

Actual Result

Claude Code process exits immediately with: "Claude Code ist abgestürzt Versuche, deine Nachricht erneut zu senden. Claude Code process exited with code 1"

Workarounds Tried (none worked)

  • Downgraded Node from v24.15.0 to v22.22.2 per https://github.com/anthropics/claude-code/issues/<NR> (forum post: "Workaround for me, just downgraded node from 24 to 22 and done!")
  • Started claude CLI separately in PowerShell, accepted ToS, exited cleanly. Then opened Desktop App SSH-Remote → still crashes.
  • Restarted Claude Code Desktop App multiple times.
  • Restarted Windows.
  • Set ExecutionPolicy to RemoteSigned for current user.
  • Verified MCP servers config — only built-in github MCP shows "failed", but disabling/ignoring it doesn't help.

Notes

The CLI version (claude in terminal) starts and accepts input without crashing — only the SSH-Remote feature in the Desktop App crashes on first input.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.126

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

extent analysis

TL;DR

The issue is likely related to the SSH-Remote feature in the Claude Code Desktop App, and a potential workaround could be to investigate the compatibility of the SSH connection settings or the Node.js version.

Guidance

  • Verify that the SSH connection settings are correct, including the SSH host, port, and identity file, to ensure that the issue is not related to the connection configuration.
  • Try using a different Node.js version, such as the latest LTS version, to see if the issue is specific to the current version (v22.22.2).
  • Investigate the error message "Claude Code process exited with code 1" to determine if it provides any clues about the cause of the crash.
  • Consider testing the SSH-Remote feature with a different remote server or a different SSH client to isolate the issue.

Example

No code snippet is provided as the issue is related to a specific application and its configuration.

Notes

The issue seems to be specific to the Desktop App's SSH-Remote feature, as the CLI version of Claude Code works without crashing. The cause of the issue is unclear, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Try using a different Node.js version or investigate the SSH connection settings to see if it resolves the issue. This is recommended because the issue seems to be related to the specific configuration or version being used.

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

claude-code - 💡(How to fix) Fix [BUG] SSH-Remote crashes on first input with "process exited with code 1" (Windows 11, Node 22) [1 comments, 2 participants]