[BUG] Claude Code desktop app gets stuck and progresses indefinitely when connected via SSH on Windows
Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Feb 20, 2026 · closed Feb 23, 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?
I successfully connected to my Docker container via SSH in Claude Code desktop app for Windows. I successfully chose the working directory. However, when I write my initial prompt and execute it, the conversation gets stuck. The progressing status is shown, but I do not get any answer/output. No matter what prompt I write, no matter what model I use.
This is happening only when connected via SSH. In Local mode, everything works fine.
What Should Happen?
When I type a prompt, Claude Code should return some answer/output. It shouldn't get stuck.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code desktop app for Windows
- Open Code mode
- Connect to a Docker container via SSH
- Select a working folder
- Type a prompt (nothing works, no matter what prompt I write, no matter what model I use)
- Conversation gets stuck, and no answer is provided
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.1.3770
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
<img width="857" height="476" alt="Image" src="https://github.com/user-attachments/assets/b4ec8a39-720f-440f-b9ff-68f46548d0e5" />
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Claude Code Desktop SSH Hangs Indefinitely on Windows → Alpine Linux (LinuxServer.io Container)
Environment
Problem
After successfully connecting to the Alpine Linux container via SSH in Claude Code Desktop and selecting a working directory, every prompt would hang indefinitely showing a progress indicator. No response was ever returned, regardless of the model or prompt used. Local mode worked fine.
Root Cause
The Alpine Linux container was missing several dependencies required by Claude Code:
libgcc,libstdc++, andripgrepfor Claude Code to function. Without these, Claude Code's shell tools hang silently.USE_BUILTIN_RIPGREP=0environment variable and correctPATHentries were missing.Fix (Step-by-Step)
1. Get a root shell via Docker (from the host machine):
2. Install required packages:
3. Grant the SSH user sudo access:
4. Set correct ownership on the user's
.bashrc:5. Exit the root shell, then via SSH (PuTTY), configure the environment:
After these steps, Claude Code Desktop SSH sessions to the Alpine container work correctly.
Notes
linuxserver.iouser was already set to/bin/bash— if yours is/bin/ashor/bin/sh, you'll also need to change it withchsh -s /bin/bash <username>.I found that Claude Code actually doesn't need to be installed inside the Linux container. There's no Claude binary anywhere on the filesystem, and it works without it. I am running Claude Code on my Windows/WSL host machine, and it's connecting into this Docker container as a sandboxed workspace. Claude Code itself doesn't need to be inside the container. It runs on the host and executes tools (shell commands, file reads/edits) against the container remotely. Claude Code lives on my host, the container is just the isolated execution environment.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.