Commandbox dependencies install Error cloning git+ssh repository

Hi,

I’m trying to install a dependency module (added in box.json) from GitLab private repo. But getting below error

Error cloning git+ssh repository
org.eclipse.jgit.api.errors.TransportException: git@gitlab.myserver.com:api/services/base.git: Auth fail
org.eclipse.jgit.errors.TransportException: git@gitlab.myserver.com:api/services/base.git: Auth fail

com.jcraft.jsch.JSchException: Auth fail

As per the document i’m not able to pass :user (install git+ssh://git@github.com:user/repo.git) since the :api in the url is a gitlab group name of the repo.

Can any one please let me know any other way to install dependency.?

The error is telling you that you’re not authenticated. If this is a private repo, then you must have an SSH key under ~/.ssh/ with access to the repo.

Also, if you want to try out the CommandBox 4.9 alpha build, it allows for personal access tokens over HTTPS as well in the format of

git+https://user:password@gitlab.com/path/to/repo.git