A
A
Andrey Okhotnikov2018-12-18 15:41:01
git
Andrey Okhotnikov, 2018-12-18 15:41:01

How to connect via SSh to Gitlab?

I created a key, added it to Gitlab, when I try to clone the repository, I get an error.

The authenticity of host <тут мой хост> can't be established.
ECDSA key fingerprint is SHA256:H4esVumjkGzu7rhgmtNX6nbvXfQCXk1iNfrvccpl2UDCg30.
Are you sure you want to continue connecting (yes/no)? 
Host key verification failed.
fatal: Не удалось прочитать из внешнего репозитория.

Удостоверьтесь, что у вас есть необходимые права доступа
и репозиторий существует.

It is possible to clone via http

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-12-18
@tsepen

your public ssh key must be added to the server first.
generate a pair of keys for yourself if you don’t have them yet: ssh-keygen -t rsa
find the id_rsa.pub file in the .ssh/ folder, and add its contents to the server (sorry, I don’t have gitlab at hand, and I don’t remember exactly where this setting is , but it is unlikely that this is very hidden).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question