Claude Code SSH Authentication Issue

Status Closed — duplicate
Maintainer reply None cached
Activity 6 comments · opened Jul 3, 2025 · closed Aug 20, 2025

Claude Code's terminal doesn't handle interactive SSH prompts, making it impossible to push to Git repos when your SSH key has a passphrase.
What happens:

bash  git push origin main
⏺ Bash(git push origin main)
  ⎿  Error: git@github.com: Permission denied (publickey).
     fatal: Could not read from remote repository.
     Please make sure you have the correct access rights
     and the repository exists.
⏺ Permission denied - you need to authenticate with GitHub first. You can
  either:
  1. Set up SSH keys: ssh-keygen -t ed25519 -C "your_email@example.com"
  2. Use GitHub CLI: gh auth login
  3. Use HTTPS with token: git remote set-url origin https://github.com/user/repo.git

The system gives helpful suggestions but doesn't handle the core issue: interactive SSH key passphrase prompts.

Root cause:
The embedded terminal lacks proper PTY support for interactive password input.

Technical fix needed:
Terminal implementation needs proper TTY raw mode support for secure password input.

View original on GitHub ↗

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