SSH repo: `ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain`.
BeginnerTroubleshootingRepos, Clusters, Projects & Permissions
Answer
Likely causes → Wrong private key, the public half was never added as a deploy key, the key has a passphrase (Argo CD cannot use it), or the URL uses a user other than git.
Diagnose → ssh -i key -T [email protected] from a workstation; check the secret's sshPrivateKey field starts with -----BEGIN OPENSSH PRIVATE KEY----- and has a trailing newline.
Fix → Generate a passphrase-less deploy key (ssh-keygen -t ed25519 -N ""), add the public key read-only on the repo, and register: argocd repo add [email protected]:org/config.git --ssh-private-key-path ./key --upsert.
Prevent → One deploy key per repo, rotated on a schedule, stored through External Secrets.
More on Repos, Clusters, Projects & Permissions
Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.BeginnerAn SSH repo fails with `ssh: handshake failed: knownhosts: key is unknown`.BeginnerA self-hosted GitLab repo fails with `x509: certificate signed by unknown authority`.IntermediateA credential template exists for `https://github.com/org`, yet new repos under the org still fail with `authentication required`.IntermediateSync fails with `application repo https://github.com/org/payments-config.git is not permitted in project 'team-a'`.Beginner`application destination server 'https://kubernetes.default.svc' and namespace 'payments' do not match any of the allowed destinations in project 'team-a'`.Beginner