D
D
Dasha2015-11-21 17:30:14
git
Dasha, 2015-11-21 17:30:14

How to do a git pull on a server where access is only available via ssh key?

Hello!
Restricted access to the server: denied access with a password, denied access under root, left access only by ssh key. Out of habit, I do git pull in the project, and he tells me:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Something stupid and I do not understand how to be. I don’t want to drop files using scp every time, should there be any other ways?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Алексей Уколов, 2015-11-21
@bizzi

Что то туплю и не пойму как быть.
Добавить в gitlab публичный ключ сервера.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question