Jahia in English > Downloading sources...

0 (0 Good)
0 (0 Bad)

Downloading sources fails with "Permission denied (publickey)"

by  andrew.liles@digitaslbi.com »  2016/06/01 21:24

CommunityDistribution v7.1.2.0

From http://localhost:8080/cms/admin/default/en/settings.manageModules.html I attempt to download the source of 

  • Jahia Article
  • Bootstrap ACME Space Templates

This connects to Github and attempts to get the source using the SSH protocol, I believe.  I get this error:

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

The UI reports:

A problem occurred when downloading the module sources in version 3.0.3. Please make sure to select the branch / tag corresponding to the version 3.0.3.

URI: scm:git:git@github.com:Jahia/bootstrap-acme-space-templates.git
Branch or tag: 3_0_3

If I attempt this command line method of cloning the repo:

git clone git@github.com:Jahia/article.git

then I can reproduce the same error, however using 

git clone https://github.com/Jahia/article.git

works fine.  But how then do I get the code into Jahia?

  • Downloading sources fails with "Permission denied (publickey)"
    2016/06/01 21:24

    andrew.liles@digitaslbi.com <p class="p1"><span class="s1">CommunityDistribution v7.1.2.0</span></p> <p class="p1">From&nbsp;http://localhost:8080/cms/admin/default/en/settings.manageModules.html I attempt to download the source of&nbsp;</p> <ul> <li class="p1">Jahia Article</li> <li class="p1">Bootstrap ACME Space Templates</li> </ul> <p class="p1">This connects to Github and attempts to get the source using the SSH protocol, I believe. &nbsp;I get this error:</p> <p class="p1"><em><span class="s1">Permission denied (publickey).</span></em></p> <p class="p1"><em><span class="s1">fatal: Could not read from remote repository.</span></em></p> <p class="p1"><em><span class="s1">Please make sure you have the correct access rights</span></em></p> <p class="p1"><em><span class="s1">and the repository exists.</span></em></p> <p class="p1">The UI reports:</p> <p class="p1"><em><span style="color: rgb(185, 74, 72); font-family: tahoma, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 11px; line-height: 16px; background-color: rgb(242, 222, 222);">A problem occurred when downloading the module sources in version 3.0.3. Please make sure to select the branch / tag corresponding to the version 3.0.3.</span></em></p> <p class="p1"><em>URI:&nbsp;scm:git:git@github.com:Jahia/bootstrap-acme-space-templates.git<br /> Branch or tag: 3_0_3</em></p> <p class="p1">If I attempt this command line method of cloning the repo:</p> <p class="p1"><em><span class="s1">git clone git@github.com:Jahia/article.git</span></em></p> <p class="p1">then I can reproduce the&nbsp;same error, however using&nbsp;</p> <p class="p1"><em><span class="s1">git clone https://github.com/Jahia/article.git</span></em></p> <p class="p1">works fine. &nbsp;But how then do I get the code into Jahia?</p>

  • Number of messages  2
    Registration date Jun 1, 2016
    0 (0 Good)
    0 (0 Bad)

    You need to have both pull access and push access e.g. own the repository and you need ssh key pairs

    by  hchingwong@gmail.com »  2016/06/06 06:57

    Hi Andrew,

    Once you successfully imported a module into Jahia, Jahia provides the ability to update back to github from within the web interface too so that means it requires push access too - e.g. you have to own the repository.
    And also you should understand and be able to Git through ssh as these commands are hard coded into the system and you have no choice but to authenticate when pulling and pushing through ssh key pairs.

    • 1.  First you should make sure you have ssh setup and working between your jahia server and git account
      (note that the ssh private key cannot have passphrases attached)
      (and if you are on windows you might need to add git to your PATH to make it work... or maybe it might not work at all, I haven't tried)
    • 2.  Then I fork modules I want to use into my own github account.
    • 3.  Finally you will be using     """<YOUR-GITHUB-USERNAME>@github.com:Jahia/bootstrap-acme-space-templates.git"""    for the URI field. Using """git@github.com:xxxxx""" is essentially ssh'ing into github as guest. It won't have enough privilages hence permission denied errors.
    • 4.  Look for the artifact ID from the pom.xml for the artifact ID field, in your case it would be "bootstrap-acme-space-templates" and "master" or "HEAD" for the TAG field, Jahia also tries to match those.

    Regards -
    Wes

  • You need to have both pull access and push access e.g. own the repository and you need ssh key pairs
    2016/06/06 07:01

    hchingwong@gmail.com <p>Hi Andrew,</p> <p>Once you successfully imported a module into Jahia, Jahia provides the ability to update back to github from within the web interface too so that means it requires push access too - e.g. you have to own the repository.<br /> And also you should understand and be able to Git through ssh as these commands are hard coded into the system and you have no choice but to authenticate when pulling and pushing through ssh key pairs.</p> <ul> <li>1.&nbsp; First you should make sure you have ssh setup and working between&nbsp;<strong>your jahia server</strong> and <strong>git account</strong><br /> (note that the ssh private key cannot have passphrases attached)<br /> (and if you are on windows you might need to add git to your PATH to make it work... or maybe it might not work at all, I haven&#39;t tried)</li> <li>2.&nbsp; Then I fork modules I want to use into my own github account.</li> <li>3.&nbsp; Finally you will be using&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;<em><span class="s1">&lt;YOUR-GITHUB-USERNAME&gt;@</span>github.com:Jahia/bootstrap-acme-space-templates.git</em>&quot;&quot;&quot;&nbsp;&nbsp;&nbsp; for the URI field. Using &quot;&quot;&quot;git@github.com:xxxxx&quot;&quot;&quot; is essentially ssh&#39;ing into github as guest. It won&#39;t have enough privilages hence permission denied errors.</li> <li>4.&nbsp; Look for the artifact ID from the pom.xml for the artifact ID field, in your case it would be &quot;bootstrap-acme-space-templates&quot; and &quot;master&quot; or &quot;HEAD&quot; for the TAG field, Jahia also tries to match those.</li> </ul> <p>Regards -<br /> Wes</p>

  • Number of messages  7
    Registration date Jun 6, 2016
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page