Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repos, Clusters, Projects & Permissions