Adding a deploy key to a second repository fails with "Key is already in use".
IntermediateTroubleshootingAuthentication and Remote Access
Answer
Likely causes → GitHub allows a given public key to be a deploy key on only one repository (and it cannot also be a user key).
Diagnose → Compare fingerprints: ssh-keygen -lf key.pub and check the other repo's deploy keys.
Fix → Generate a separate key per repo (ssh-keygen -t ed25519 -f ~/.ssh/deploy_repo2) and use host aliases in ~/.ssh/config to select them. For many repos, use a GitHub App or a machine account instead.
Prevent → Naming keys by repo in secrets management avoids reuse attempts.
More on Authentication and Remote Access
`[email protected]: Permission denied (publickey).` followed by `fatal: Could not read from remote repository.`Beginner`remote: Support for password authentication was removed on August 13, 2021.`Beginner`fatal: Authentication failed for 'https://github.com/org/repo.git/'` with a token that worked last month.Beginner`WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` when connecting to GitHub over SSH.Intermediate`remote: Repository not found.` for a repo you can open in the browser.Beginner`ssh -T [email protected]` says "Hi someone-else!" but you need your work account.Intermediate