Re: Fetch private gitlab repo using ssh with Yocto recipe #bitbake

Nicolas Jeker

On Tue, 2022-01-25 at 23:16 -0800, hrsourabh011@... wrote:
I am trying to fetch a private gitlab repo within Yocto image recipe
using SSH protocol. In my image recipe I have passed SRC_URI as:

SRC_URI = " \
=ssh;branch=master \
I use almost the same, just without submodules.


It should "just work" if ssh is able to find your key. I often build in
a docker container, so I have to forward SSH_AGENT into it to be able
to fetch from internal projects without the need to mount the key into
the container. I don't really have any insight for builds outside
docker, if git clone works, the bitbake fetcher should too.

But this results in the error:

But I am able to clone the repo using git clone.
SSH key is already added to the Gitlab. There is no config file in my
~/.ssh. Do I need to create a config file? What should be the content
of the config file?
You should not need a ssh config file.

Can anyone please let me know how to resolve this?
Thanks in advance.

Join to automatically receive all group messages.