Re: Fetch private gitlab repo using ssh with Yocto recipe #bitbake
On Fri, 2022-01-28 at 10:27 +0000, VIVAVIS AG wrote:
Hi,That's pretty much what I use.
Furthermore, I had to mount the .ssh folder into the container toI do something similar, my "problem" was that ssh needs the
.ssh/known_hosts file with a matching entry in addition to your
key/agent, but mounting the .ssh folder was not possible for me because
of permissions. Currently, I just created a little script that wraps
"oe-init-build-env" and populates the known_hosts file accordingly.
mkdir -p ~/.ssh
cat <<EOF >> ~/.ssh/known_hosts
git.example.com ssh-ed25519 <base64key>