[BUG] Remote SSH connection receives messages but never generates responses
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?
Remote SSH sessions from the Claude Code desktop app receive and process messages but never generate a response. The app shows "Connected to server", I send a message, it briefly disconnects, the message stays in chat with no response, and after a few seconds it
reconnects. This cycle repeats indefinitely. No error is shown to the user at any point.
Debug logs on the server (~/.claude/debug/) confirm the issue — they only contain user message processing and endInput() calls. Zero assistant responses are ever generated. The API call simply never happens.
Running claude directly via SSH terminal on the same server works perfectly. Same credentials, same version, same everything.
I'm paying $200/month for Max 20x and a core feature is completely non-functional.
What Should Happen?
Messages sent through the desktop app's remote SSH connection should generate responses, same as local sessions or direct CLI usage via SSH terminal.
Error Messages/Logs
No errors shown in the app. Server-side debug log shows this pattern repeating endlessly:
[Query.streamInput] Starting to process input stream
[Query.streamInput] Processing message 1: user
[Query.streamInput] Finished processing 1 messages from input stream
[Query] Calling transport.endInput() to close stdin to CLI process
No assistant response, no error, no API call — it just stops after endInput().
Steps to Reproduce
- Install Claude Code 2.1.79 on a remote Linux server (Ubuntu 24.04)
- Configure SSH key-based auth
- Connect from Claude Code desktop app via remote SSH
- Send any message
- Observe: message processed, no response returned (I've been working with this setup till now)
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.79 (server)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗