본문 바로가기

GitHub

[GitHub_Error] token 인증 로그인 - remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

반응형

안녕하세요! 오늘은 새로운 오류를 들고 왔습니다!!!!!

사실 전에 떴던 오류인데, 갑자기 오늘도 뜨길래 들고왔어요ㅎㅎ

 

 

해석해보니..

2021년 8월 13일에 암호 인증 지원이 제거되었습니다. 대신 개인 액세스 토큰을 사용하십시오.

자세한 내용은 https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/를 참조하세요!

 

 

2021년도 중반부터 인증에 token이 사용될 것이라는 GitHub 공지가 있는걸 보니, 예정되어있었던 오류인 것 같아요!

8월 13일 이후로 비밀번호가 토큰이나 ssh 로 인증하는 것으로 바뀌었다고 합니다!!!

아마 Git hub를 자주 사용하시는 분들은.. 벌써 다 해결했겠죠,,,,?

 

1. GitHub 토큰 만드는 법 

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

 

Creating a personal access token - GitHub Docs

You should create a personal access token to use in place of a password with the command line or with the API.

docs.github.com

 

Token 설정

 

 

 

Generate token 클릭하고, 토큰을 복사해야합니다!!

 

Mac KeyChain 삭제

command + space 누르고 keychain을 검색

 

키체인에서 github를 검색한 후, 키체인이 '로그인'이라고 된 항목을 삭제하면 됩니다.

 

터미널 설정

계정 입력

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

 

push 후, Password 부분에 복사했던 Token을 붙여넣기해주면 정상적으로 실행됩니다!!

 


요즘 너무 추워졌어요..... 감기 조심,,!!

반응형

'GitHub' 카테고리의 다른 글

Linux 명령어 모음  (1) 2023.01.27
[GitHub] Xcode에서 branch 가져오기  (0) 2023.01.27
[GitHub] Git 기본 명령어  (0) 2023.01.27
[GitHub] 403 error  (0) 2023.01.27
[GitHub] 계정 변경하기  (0) 2023.01.27