I am attempting to clone a git repo from inside an ubuntu 20 server, but after it permanently adds my ECSDA key, I get the following error:
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
I do have access to it from my local machine, but how do I access that Github repo from this Ubuntu server?
I tried to clone it by running, sudo git clone [email protected]:MyRepo/api-service.git
To to be clear this repository is up on Github and I am inside an ubuntu 20 server trying to clone it.
Is this not a matter of adding the keys from Github?