[BUG] SSH-Remote crashes on first input with "process exited with code 1" (Windows 11, Node 22)

Resolved 💬 3 comments Opened May 2, 2026 by Graindl Closed May 5, 2026

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?

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 '""'

  1. Copy public key (id_ed25519.pub) to remote Linux server's

~/.ssh/authorized_keys (or test via Hetzner Cloud Console)

  1. Verify SSH works manually in PowerShell:

ssh root@<server-ip>
→ connects successfully, no password prompt

  1. 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
  1. Click "Connect"
  2. Accept "Trust this folder" prompt for the remote workspace
  3. Optional: navigate to a project folder and select it
  4. Type ANY text in the Claude prompt (e.g. "hello")
  5. 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_

View original on GitHub ↗

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