SSH 101
Добавление SSH-ключа в репозиторий Git 1. Создать ключ ssh-keygen -t ed25519 -C "your_email@example.com" (легаси: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ) > Enter a file in which to save the key (/c/Users/YOU/.ssh/id_ALGORITHM):<имя ключа> > Enter passphrase (empty for no passphrase): [Type a passphrase] > Enter same passphrase again: [Type passphrase again] 2. Добавить "pub" ключ в репозиторий. Полностью скопировать содержимое файла ключа в поле ключа в репозитории. Сохранить ключ в репозитории под каким-то именем. 3. Добавить ключ в shh-agent. Сначала ручной запуск ssh-agent в фоне: eval "$(ssh-agent -s)" Теперь добавление ключа: ssh-add ~/.ssh/<имя ключа> Управление ключами Вывести перечень зарегистрированных ключей ls -al ~/.ssh Решение проблем git@example.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the reposito...