An SSH repo fails with `ssh: handshake failed: knownhosts: key is unknown`.
BeginnerTroubleshootingRepos, Clusters, Projects & Permissions
Answer
Likely causes → The Git host's SSH key is not in argocd-ssh-known-hosts-cm. Common with self-hosted GitLab/Bitbucket, or after the host rotated its key.
Diagnose → argocd cert list --cert-type ssh and compare with ssh-keyscan git.example.com.
Fix →
ssh-keyscan git.example.com | argocd cert add-ssh --batch
Or add the lines to argocd-ssh-known-hosts-cm declaratively. Do not set insecure: true in production.
Prevent → Manage known hosts in Git with the rest of the Argo CD config and update them when the host rotates keys.
More on Repos, Clusters, Projects & Permissions
Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.BeginnerSSH repo: `ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain`.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