claude-code - 💡(How to fix) Fix [FEATURE] Interactive login `c to copy` is unusable over SSH — surface `claude auth login` fallback in the prompt

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Title: Interactive login c to copy is unusable over SSH — surface claude auth login fallback in the prompt

Environment

  • Claude Code: latest
  • Context: SSH session into a remote VM, working from a local terminal

Problem When launching claude on a remote VM over SSH, the new TUI login flow shows an OAuth URL and instructs the user to press c to copy. Over SSH, c copies to the remote machine's clipboard, which the local browser cannot reach. The URL itself is rendered inside the TUI in a way that mouse-selection often doesn't cleanly capture (mouse mode, line wrapping, decorations), so the only apparent path forward is manually retyping a 1000+ character OAuth URL into a local browser. This is effectively a dead end for SSH users.

What worked (the actual fix) Exiting the TUI and running claude auth login instead. That command prints the OAuth URL as plain selectable terminal text and reads the pasted code back from stdin. This is documented in the troubleshooting page but is not discoverable from inside the login flow itself, which is where users hit the wall.

Why it matters This is a first-run experience for remote-dev users. Hitting an unrecoverable-looking wall on step one is a bad first impression and likely a non-trivial source of silent drop-off. The fix is a single line of copy.

Repro

  1. SSH into any remote VM from a local machine
  2. Run claude and trigger the login flow
  3. Observe: pressing c copies to the remote clipboard; the URL is not easily selectable; no in-TUI hint points to claude auth login

Proposed Solution

Suggested change In the interactive login prompt, add a one-line hint near the c to copy instruction, conditional or unconditional:

Over SSH or unable to copy? Exit (Ctrl+C) and run claude auth login for a selectable URL.

Optionally detect $SSH_CONNECTION / $SSH_TTY and surface the hint more prominently when set.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Interactive login `c to copy` is unusable over SSH — surface `claude auth login` fallback in the prompt