[BUG] Session becomes unresponsive after 2-3 messages when using Claude Code over remote SSH

Status Fixed / completed
Reported on v2.1.267
Maintainer reply None cached
Activity 0 comments · opened Sep 10, 2026 · closed Sep 15, 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?

When connected to Claude Code via a remote SSH session, the session hangs / stops responding after asking only 2-3 questions in a row. It needs to be restarted to continue working.

What Should Happen?

The session should remain responsive for extended use over SSH, without hanging after just a few exchanges.

Error Messages/Logs

Steps to Reproduce

  1. Connect to a remote machine via SSH.
  2. Start a Claude Code session (claude).
  3. Ask 2-3 questions / send 2-3 prompts in the same session.
  4. The session stops responding (hangs) and does not continue processing further input.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.267

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗