Claude Code OAuth flow broken over SSH — cannot paste auth code

Resolved 💬 3 comments Opened Apr 14, 2026 by raymondclynick-max Closed Apr 17, 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 authenticating Claude Code via /login in a terminal connected to a remote machine over SSH, the browser opens the auth URL correctly and generates a one-time code. However, the "click to copy" button on the auth page fails silently in Chrome — clicking it does not copy the code to clipboard. Manual text selection of the code is also not possible as the text is not selectable. There is no fallback to type the code in manually. This makes it impossible to complete authentication over SSH without an API key, which incurs separate billing outside the Claude.ai subscription. This appears to be a recent regression as the flow was working previously.
Environment: Claude Code over SSH, remote Ubuntu 24.04 LTS, Chrome browser on local machine, Tailscale mesh network.

What Should Happen?

Should copy

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:
SSH into a remote machine (Ubuntu 24.04 LTS) from a local machine
Run claude or /login in the remote terminal
Claude Code generates a browser auth URL — copy and open in Chrome on the local machine
Auth page loads and displays a one-time code
Click the "click to copy" button on the auth page — nothing is copied to clipboard
Attempt to manually select the code text — text is not selectable
Attempt to type the code manually into the terminal — no input field accepts it
Authentication cannot be completed
Expected behaviour: Clicking the copy button copies the code, which can then be pasted into the remote terminal to complete authentication.
Actual behaviour: Copy button fails silently, text is unselectable, no manual entry fallback exists. Authentication is impossible without bypassing to API key billing.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude code V2.1.107

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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