On Fri, 2022-01-28 at 10:27 +0000, VIVAVIS AG wrote: > Hi, > > > Von: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> Im > > Auftrag von Sourabh Hegde > > Gesendet: Freitag, 28. Januar 2022 10:47 > > > > Can you please let me know how 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 never did that before. > > I use the following options within the Docker run command: > -v $SSH_AUTH_SOCK:/ssh.socket \ > -e SSH_AUTH_SOCK=/ssh.socket \ >
That's pretty much what I use. > Furthermore, I had to mount the .ssh folder into the container to > make it working (be aware of security risk). > Additionally, you should check that uid, gid of the user in the > container is the same on the host. I 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> EOF > Regards, > > Carsten >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#56009): https://lists.yoctoproject.org/g/yocto/message/56009 Mute This Topic: https://lists.yoctoproject.org/mt/88691891/21656 Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-