Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
한동안 git에 신경을 쓰지 않다가 이번 사이드 프로젝트를 진행하면서 git clone을 진행하였는데 해당 오류가 발생하였다. 분명 username과 password가 맞는데 clone이 되지 않아 에러 내용을 확인해보니
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 'https://github.com/AgileworksDev/Dragon_community.git/'
2021년 8월 13일부로 인증이 관련된 내용이 변경이 된 모양이다. 메세지에 나온 URL을 통하여 변경된 사항을 확인할 수 있다.
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
Token authentication requirements for Git operations | The GitHub Blog
Beginning August 13th, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.
github.blog
이제는 password 입력방식의 인증이 아니라 personal access token을 생성해야 한다고 나와있다.
personal access token을 생성하는 방법은 간단하다.
- github login
- settings
- Developer settings
- Personal access tokens
- Generate New Token
- 제목과 필요항목 선택 후 생성
토큰을 한번 생성하고 나면 Key값을 받게 되는데 Key값을 보여주는 화면을 나가게 되면 Key값을 다시 확인 할 수 없으니 따로 보관하고 있어야 한다.
이후 username을 입력하고 password에 token key를 입력해주면
Cloning into 'Dragon_community'...
remote: Enumerating objects: 92, done.
remote: Counting objects: 100% (92/92), done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 92 (delta 21), reused 78 (delta 13), pack-reused 0
Receiving objects: 100% (92/92), 334.26 KiB | 1.81 MiB/s, done.
Resolving deltas: 100% (21/21), done.
정상적으로 clone이 된 것을 확인 할 수 있다.
'Etc' 카테고리의 다른 글
애플리케이션 뒤로가기 버튼 history back 이슈 (0) | 2022.05.24 |
---|---|
Ubuntu 20.04 Waiting for cache lock: Could not get lock /var/lib/dpkg/lock. 오류 (0) | 2022.04.27 |
Git stash - 작업 내용 임시 저장하기 (0) | 2022.04.21 |
git commit 시 여러 계정을 사용하는 경우 (1) | 2022.02.22 |
MongoDB에 관하여 (0) | 2022.02.21 |
조금씩이라도 꾸준히..