Claude Code SSH Authentication Issue
Resolved 💬 6 comments Opened Jul 3, 2025 by magicmoam 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.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗