Cannot git clone from my own repo
-
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? -
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