Переход с HTTPS на SSH github

Содержание
Проблема
Решение
Другие статьи про Git

Проблема

Авторизация по паролю запрещена с 13 августа 2021-го года

Username for 'https://github.comUsername for ': andreiolegovichru Password for Username for 'https://andreiolegovichru@github.comUsername for ': remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for Username for 'https://github.com/andreiolegovichru/spider-den/Username for '

Нужно переходить на другой способ авторизации - например по SSH

Решение

cd ~/.ssh
ssh-keygen -t ed25519 -C "username@email.ru"
eval `ssh-agent -s`
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub

В браузере открыть

https://github.com/settings/keys

New SSH key

Вставить туда ключ и сохранить

git remote set-url origin git@github.com:yourgitusername/yourrepo.git
git remote -v

Article author: Andrei Olegovich

Похожие статьи
Git
Protecting the main branch on GitHub
Установка в Windows
Установка TortoiseGit
.gitignore
Необходимые Bash команды
Errors
Development
DevOps
SSH
Работа с API GitHub
Banner image

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: