-
Notifications
You must be signed in to change notification settings - Fork 114
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
AgentProxyException when referencing a git repo in deps.edn #65
Comments
Judging from the jsch-agent-proxy-connector-factory source code, it looks like it's trying to use ssh-agent to get the key. But I suspect that's not running. Is there a way to configure it to read the key created by the buildpack directly? |
I don't see how I can configure jsch to do so, but I looked into the buildpack source and it is not registering the key in ssh-agent. I modified the buildpack to add the key to ssh-agent here, but when testing with this version, I still get the same error. |
I had another stab at it. You were correct that the problem is that clojure cli tools expect the ssh-agent to be running, yet clojure's buildpack doesn't launch it. I think it should, so I've added its start in #66. However I'm now getting a different error:
It seems as if clojure's buildpack doesn't see the changes done by the ssh buildpack in ~/.ssh/config ? I'll keep on investigating but I thought it could be useful to document all this here. |
do you know if jsch-agent-proxy honors |
Did you find a solution for this? |
I'm trying to deploy a project that references another gitlab repo as a dependency through clojure deps.
In order to have the required ssh keys, I use the following custom buildpack on top of the clojure one: https://github.com/simon0191/custom-ssh-key-buildpack
But when trying to pull this private gitlab repo through clojure deps, I get the following message:
There seems to be some configuration that needs to be amended, but I can't find where.
The text was updated successfully, but these errors were encountered: