Permission denied to repo with the hard-way

Hello,

Since the new process to create/build airsdk project, I can’t build my project with the Hard-way process beacause there is a problem of acces to the git.

repo init -u "ssh://git@github.com/Parrot-Developers/airsdk-samples-manifest" -b the-hard-way
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo: Updating release signing keys to keyset ver 2.3
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.

The authenticity of host 'github.com (::ffff:140.82.121.4)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

manifests:
Warning: Permanently added 'github.com,::ffff:140.82.121.4' (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
manifests: sleeping 4.0 seconds before retrying

manifests:
Warning: Permanently added the ECDSA host key for IP address '140.82.121.4' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: cannot obtain manifest ssh://git@github.com/Parrot-Developers/airsdk-samples-manifest

I hadn’t the problem before. How I can get an acces as before ?

Hi,

We did not change anything regarding the access right of our github repositories, but github recently changed their ssh public key, which might be the cause of your issue.

Another thing you might want to try is to pull everything using https:// instead of ssh://:

repo init -u "https://github.com/Parrot-Developers/airsdk-samples-manifest" -b the-hard-way

And then patch the .repo/manifests/default.xml file by changing the <remote fetch="ssh://git@github.com/Parrot-Developers" name="github"/> line to <remote fetch="https://github.com/Parrot-Developers" name="github"/> before calling repo sync

Regards,
Nicolas.

I resolved the issue but with http and not https.

Can you remove in your manifest ssh link ?

To get only the repo and build folders to build my project I created this script:

if [ ! -d ".repo" ]
then
    repo init -u "http://github.com/Parrot-Developers/airsdk-samples-manifest" -b master
    sed -i 's$ssh://git@$http://$g' .repo/manifests/default.xml
    repo sync
    
    # Remove useless samples
    rm -r products/hello
    rm -r packages/airsdk-samples

    # Fix ustar format issue (https://github.com/kivy/python-for-android/issues/1013#issuecomment-282204357)
    sed -i s/USTAR_FORMAT/GNU_FORMAT/ build/dragon_buildext_sign/sign.py

    # Comment airskd-samples in .repo/manifests/default.xml
    sed -i '16 s/^/<!--/' .repo/manifests/default.xml
    sed -i '20 s/^/!-->/' .repo/manifests/default.xml
    rm README
fi

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.