On Mon, Sep 9, 2013 at 9:47 AM, Rohit2 Jindal <rohit2.jin...@aricent.com>wrote:

> Actually I want to access external git server of our client using yocto
> SRC_URI. But I am not able to create path to git server .
>
>
> I just have following info of external server with me
>
> 1)~/.ssh/config file
>
> host xyz
> user epuser
> hostname ep-code.xyz.com
> port 22
> identityfile ~/.ssh/abc_r.j
>
>
> 2)abc_r.j.pub file
> 3)abc_r.j file
>
> I am not able to understand which URI protocols will work for me to set
> path in SRC_URI of .bb file
>
>
> Same thing on linux prompt works like this
> $git clone xyz:sysconfig
>
>
>
> $buildroot>make git-checkout
> Available tag used is xxx-ep-20130823-3.0-alpha
> Available server epu...@ep-code.xyz.com:/
>


The following should work:

SRC_URI = "git://foo.xyz.com/folder/project.git;protocol=ssh"

And in ~/.ssh/config

Host foo.xyz.com
  User <your username>
  IdentityFile ~/.ssh/abc_r.j

You would need to ssh once to that server outside of OE so that i records
the server in ~/.ssh/known_hosts first.
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to