Я недавно установил gitlab на экземпляр Ubuntu 18.04 LTS. Я пытаюсь клонировать репо из GitLab. Мой конфигурационный файл s sh выглядит следующим образом:
# ~/.ssh/config
User git
Hostname gitlab.com
IdentityFile ~/.ssh/id_ed25519
TCPKeepAlive yes
IdentitiesOnly yes
Я добавил ключ ed25519 publi c к ключам S SH в GitLab. Когда я пытаюсь клонировать репо, я получаю эту проблему -
$ git clone git@xxxx:root/test-project.git
Cloning into 'test-project'...
kex_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Что я делаю не так? Я проверил несколько ссылок на inte rnet, но я не могу понять, что я сделал неправильно.
Я могу клонировать и pu sh, если я использую http вместо s sh.
git clone http://xxxx/root/test-project.git
Cloning into 'test-project'...
warning: You appear to have cloned an empty repository.
Почему работает http, а не s sh?