-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding a private repo declaratively shows error SSH agent requested but SSH_AUTH_SOCK not-specified #1172
Comments
(Not trying to revive a dead post, but I had the same issue and found this page via google, I'm posting on this closed thread incase it helps other future googlers.) I think there was a change in a newer version of argocd. until I changed my url from to have ssh:// in the front
(Also note worthy is that without ssh:// used to work for me in a previous version of ArgoCD) |
@neoakris could you provide more details on your situation to give better insight on how you found this? What version of argocd, declarative setup or used argocd cli? env information?? TIA |
argocd:v1.7.8 I don't have access to the cluster that it used to run on but I know it was an older version of argo on that cluster |
Just FYI... this is pretty obvious and maybe no one else has encountered the same problem as me. However, I wanted to add this here just in case it saves someone a few minutes of troubleshooting. I originally set up my repositories in ArgoCD using SSH keys. I recently started using 'deploy tokens' in GitLab and this seems like a better solution overall. Long story short, in the CRDs for my applications, I forgot to change the 'repoURL' properties from the SSH to the HTTPS URIs. Changing them fixed this immediately. |
When trying to access a private repository, argo is failing with: rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified" There is a comment in [1] that suggests this can be resolved by using a different URL format. [1]: argoproj/argo-cd#1172 (comment)
When trying to access a private repository, argo is failing with: rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified" There is a comment in [1] that suggests this can be resolved by using a different URL format. [1]: argoproj/argo-cd#1172 (comment)
When trying to access a private repository, argo is failing with: rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified" There is a comment in [1] that suggests this can be resolved by using a different URL format. [1]: argoproj/argo-cd#1172 (comment)
When trying to access a private repository, argo is failing with: rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified" There is a comment in [1] that suggests this can be resolved by using a different URL format. [1]: argoproj/argo-cd#1172 (comment)
To clarify this comment with the docs:
From the documentation:
That |
Hello, I am facing an issue with being unable to connect GitLab private with argocd, I used sssh and passed secret and configmap but still, authentication failed can you please explain what could be the problem? |
Description
Adding a private repository, using a
ssh-key
in a secret to autenticate, by a declarative approach fails withSSH agent requested but SSH_AUTH_SOCK not-specified
.NOTE
If added by the command-line
argocd repo add git@bitbucket.org:MY-PROJECT/MY-REPO.git --ssh-private-key-path key/id_rsa_bitbucket
:argocd repo rm git@bitbucket.org:MY-PROJECT/MY-REPO.git
and then added with the command above.Files
kustomization.yaml
repositories.yaml
a valid key is set in the path
key/id_rsa_bitbucket
, this key works because as explained above, it works if added by the command line.Expected Behavior
UPDATE
sshPrivateKeySecret
. The right version is here:The text was updated successfully, but these errors were encountered: