<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 9:47 AM, Rohit2 Jindal <span dir="ltr"><<a href="mailto:rohit2.jindal@aricent.com" target="_blank">rohit2.jindal@aricent.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="overflow:hidden">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 .<br>
<br>
<br>
I just have following info of external server with me<br>
<br>
1)~/.ssh/config file<br>
<br>
host xyz<br>
user epuser<br>
hostname <a href="http://ep-code.xyz.com" target="_blank">ep-code.xyz.com</a><br>
port 22<br>
identityfile ~/.ssh/abc_r.j<br>
<br>
<br>
2)abc_r.j.pub file<br>
3)abc_r.j file<br>
<br>
I am not able to understand which URI protocols will work for me to set path in SRC_URI of .bb file<br>
<br>
<br>
Same thing on linux prompt works like this<br>
$git clone xyz:sysconfig<br>
<br>
<br>
<br>
$buildroot>make git-checkout<br>
Available tag used is xxx-ep-20130823-3.0-alpha<br>
Available server epuser@ep-code.xyz.com:/<br></div></blockquote></div><div class="gmail_extra"><br></div><br>The following should work:</div><div class="gmail_extra">
<br></div><div class="gmail_extra"><div class="gmail_extra">SRC_URI = "git://<a href="http://foo.xyz.com/folder/project.git;protocol=ssh" target="_blank">foo.xyz.com/folder/project.git;protocol=ssh</a>"</div><div>
<br></div><div>
And in ~/.ssh/config</div><div><br></div><div>Host <a href="http://foo.xyz.com" target="_blank">foo.xyz.com</a></div><div> User <your username></div><div> IdentityFile ~/.ssh/abc_r.j</div></div><div class="gmail_extra">
<br></div><div class="gmail_extra">You would need to ssh once to that server outside of OE so that i records the server in ~/.ssh/known_hosts first.</div>
<div class="gmail_extra"><br></div></div>