Answer the question
In order to leave comments, you need to log in
Git clone ssh - Permission denied (publickey) doesn't clone a repository?
Created a repository on my remote server.
I connect from my user to the server by key - everything is ok.
When trying to git clone:
sudo git clone [email protected]:/var/www/domain/my.git
Cloning into 'my'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Answer the question
In order to leave comments, you need to log in
sudo ssh [email protected] -- can you login?
Hinting at a solution to the problem: why avoid sudo?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question