Reputation: 199
My question is very simple.
I am connected with ssh to my remote server. I would like to make a git clone using ssh key in my remote server... Each time
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I have generated my ssh in my remote server private and public. I have add my public key in gitlab.
But maybe I have forgot a step.
Thanks in advance for you help.
Upvotes: 0
Views: 399
Reputation: 134
If you're sure you have your key in your remote server, and it has the proper permissions (600 or 400 will do). Just:
ssh-add route/to/your/key
and you should be able to clone properly.
NOTE: If your SSH agent is not running, start it with:
eval "$(ssh-agent -s)"
Upvotes: 1