UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Cannot git clone from my own repo

    Scheduled Pinned Locked Moved Unsolved Support
    2 Posts 2 Posters 187 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • R Offline
        RJDan
        last edited by RJDan

        I am trying to clone the documentation for ubports to my phone (desktop mode) to edit locally.
        I have forked the docs on gitlab, I created the ssh keys on the phone (Wth passphrase) and I have added the public key to gitlab.
        I ran the command below to test the connection. It worked after I entered the passphrase for the key.

        ssh -T git@gitlab.com 
        

        but when i try to clone my fork with this

        git clone git@gitlab.com:MyUserName/docs.ubports.com.git
        

        I get the following

        Cloning ....
        load key ... : Permission denied (publickey).
        fatal: Could not read from remote repository.
        

        I can clone public repos ... so it is not an issue with connecting to gitlab.
        Any advice?

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander @RJDan
          last edited by arubislander

          @RJDan

          Could you try explicitly referencing the key file with the clone?

          git clone -c core.sshCommand="ssh -i ~/.ssh/my_gitlab_ssh_key" \
                    git@gitlab.com:MyUserName/docs.ubports.com.git
          

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (24.04 preview)
          JingPad (24.04 preview)
          PinePhone OG (20.04)
          Meizu Pro 5 (16.04 DEV)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post