GitHub 403 Error. Access Token 설정 방법
☃️

GitHub 403 Error. Access Token 설정 방법

Created
2021/08/14
Tags
git
auth
 
 
 
2021-08-14 @이영훈
 
github에 push 하는데 403 에러와 다음 에러 메시지가 나타났습니다
password 인증 방식에서 access token 방식으로 변경되었다라는 내용입니다
 

에러메시지

 
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
 
notion image
 

해결방법

  1. https://github.com/settings/tokens  에서 "Generate new token"을 클릭합니다
    1. notion image
 
  1. 이름(목적)과 기간(Expiration), 권한을 선택해서 access token을 생성합니다
    1. notion image
 
  1. 만들어진 access token을 꼭!!! 복사합니다. access token은 한 번만 보여지고 복사 못 하시면 새로 다시 만들어야합니다.
    1. notion image
 
  1. Keychain Access에 들어가셔서 위에 복사한 access token을 넣어줍니다
    1. notion image
      notion image
 
  1. 이제 정상적으로 푸쉬가 됩니다