티스토리 뷰

728x90
반응형

[문제내용]

$ git push -u origin main
Username for 'https://github.com': Eun-Kang-Choi
Password for 'https://Eun-Kang-Choi@github.com': 
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/eunkangchoi/eunkangchoi.github.io.git/'

[해결방법]

커맨드로 git 을 사용할 경우에는 토큰이 필요하다는 내용 입니다.

2021년 8월 13일 이후로, 개발자 개인계정에서 커맨드로 git을 사용하려면 개인별 인증토큰 이 필요합니다.

특히 HTTP 로 클론한 래포지토리에 관련해서, 해당 프로젝트의 파일을 관리 및 변경할 때는 인증토큰이 필요합니다.

 

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

 

 

 

 

Note 는 빈값으로 두면안된다, 필자의 경우에는 'ek-auth'로 합니다. (사용자 정의입니다.)

필자는 Expiration은 'No Expiration' 을 선택했습니다.

 

 

필자의 경우 Select scopes 영역은 repo, workflow, gist, notification 등 전부 다 체크했습니다.

그리고 맨아래 Generate token을 클릭합니다.

 

 

토큰이 발급되며, 발급받은 토큰을 복사합니다.

 

git config 로 유저정보를 입력합니다.

$ git config --global user.name "username"
$ git config --global user.email "user@example.com"

 

커밋하려는 래포지토리로 이동하여 커밋과 푸시명령어를 치면, Username 과 Password 입력을 요구합니다.

Username 은 github 아이디를

Password 는 복사한 토큰값을 붙여넣으면 됩니다.

 


[참고]

첫번째 링크는 github 에서 personal access token 발급 다큐먼트 입니다.

 

Creating a personal access token - GitHub Docs

Notes: If you use GitHub CLI to authenticate to GitHub on the command line, you can skip generating a personal access token and authenticate via the web browser instead. For more information about authenticating with GitHub CLI, see gh auth login. Git Cred

docs.github.com

 

GitHub 토큰 인증 로그인 하기 - [오류 해결]: remote: Support for password authentication was removed on August 13, 2

오늘 알고리즘 문제를 풀고 푸쉬를 하는데 이런 오류를 만났다. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please se..

miracleground.tistory.com

 

 

[Mac] GitHub push token 오류 해결

Github 오류 7.29일 새벽 갑자기 git push가 안 되는 현상을 겪었다. 오류의 첫 줄이 무슨 말이냐면 Password 인증방식이 일시적으로 brownout(shutdown?)되었다. Password 대신에 personal access token을 사용..

hyeo-noo.tistory.com

 

728x90
반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함