codinghatso

github의 2021년 8월 13일 권한 정책변경 본문

Git/Github

github의 2021년 8월 13일 권한 정책변경

hatso 2021. 8. 18. 18:08

평화로운 공부중 하루 일과를 마치고.

$git push를 입력했지만

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: unable to access 
'https://github.com/[user_name]/[rep_name].git/': The requested URL returned error: 403
  

위 같은 오류 메세지가 발생하였고... 이를 해결하기 위한 몸부림이 시작되었다.

 

github의 정책변경으로 인한 access token 문제를 해결 방법을 공유하려고 합니다.

참고로 본 저자는 MacOS user이며 CLI 환경에서 git을 컨트롤하는 상태이라는 것을 알아두길 바랍니다.

1.step

github_settings

2.step

dev_settings

3.step

4.step

5.step

6.step

7.stpe

macOS 는 키가 이미 등록되어있어 삭제를 한 후에 재등록 해야한다.

위 키체인 관리 목록에 들어가 github를 검색한 후 웹 양식을 제외한 나머지를 삭제하면 된다.

이후 다시 push를 시도하면 패스워드를 물어보는데 그때의 패스워드가 발급받은 토큰 번호이다.

Comments