Paste into prompt fails when running Claude Code over SSH (Windows console → remote Linux)
Open 💬 0 comments Opened Jul 9, 2026 by adleruva-hub
Summary
When Claude Code runs over an SSH session (Windows client → remote Linux host), pasting text into the prompt input fails. The same clipboard content pastes fine into the surrounding shell (PowerShell) but not into the Claude Code TUI input box.
Environment
- Claude Code version: 2.1.205 (latest at time of report)
- Client: Windows 10/11, connecting via the built-in OpenSSH client launched from a legacy console (conhost / cmd.exe) window
- Command used to connect:
ssh user@remote-linux-host, thenclaudeon the remote host - Server: Linux (Claude Code process runs on the remote host)
Steps to reproduce
- From a Windows
cmd.exe/conhost window,sshinto a remote Linux host. - Run
claudeon the remote host. - Copy some plain text to the Windows clipboard (e.g. from Notepad).
- In the Claude Code prompt, try to paste with any of:
Ctrl+VCtrl+Shift+V- right mouse button (console QuickEdit paste)
Actual behavior
Ctrl+V/Ctrl+Shift+V→ shows a message telling the user they are SSH'd and to usescp(the image-paste-over-SSH message), even though the clipboard contains plain text, not an image. Nothing is pasted.- Right mouse button → nothing happens at all (the TUI appears to capture mouse input, so the console's own right-click paste never fires).
- The exact same copied text pastes normally into the surrounding PowerShell/cmd shell, confirming the OS clipboard and console paste are healthy — the failure is specific to the Claude Code input over SSH.
Expected behavior
Plain-text paste into the prompt should work over SSH (as it does locally), or at minimum text paste should not be routed into the image-paste "try scp" path.
Notes
- No image is on the clipboard; this is text-only.
- Bracketed-paste degradation over the SSH + Windows-console path is a likely culprit, and the "you're SSH'd, try scp" fallback appears to conflate image-paste failure with all paste failures.
- This is a hard blocker for users who rely on pasting into the prompt over SSH.