INFO

[Mac OS] github personal token access 생성 방법

☆_★ 2021. 8. 16. 01:00

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
fatal: unable to access 'https://github.com/jinyy2/Algorithm.git/': The requested URL returned error: 403

 

오랜만에 깃허브 커밋 후 remote repository에 푸쉬했더니 다음과 같은 에러로 업로드 되지 않았습니다.

기존 ID/PASSWORD 입력 방식이 2021.08.13에 제거되어 깃허브 로그인하려면 personal access token을 사용하라는 안내 문구입니다.

403에러는 기존 입력방식으로 요청했으나 개인토큰으로 바꼈기 때문에 access denied, 접근 금지됐다는 에러코드입니다.

 

답은 구글링

https://curryyou.tistory.com/403

이분의 블로그를 보고 해결하였습니다.

 

https://github.com/

 

GitHub: Where the world builds software

GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

  • Github 계정 로그인 - Settings

 

  • Developer settings 클릭

Developer settings 클릭

  • Personal access tokens 클릭 - Generate new token 클릭

Personal access tokens - Generate new token

 

  • 원하는 이름으로 토큰을 생성, 토큰 만료일 지정, 원하는 권한 주기
    • Note : macGit
    • Expiration : 90 days
    • Select scopes : repo

모든 권한이 필요 없어 repo만 줬습니다.

  • Token 복사하기

생성된 토큰을 다시 볼 수 없다는 메시지를 볼 수 있습니다.
토큰 값을 잘 보관하셔야하고, 까먹었으면 토큰을 재생성해야합니다.

 

  • 키체인 접근 - github 검색 - 더블 클릭

 

  • 암호 보기 클릭 후  - 기존 패스워드 제거 후 토큰값 붙여넣기 - 변경 사항 저장

 

  • git push

 

github의 인증방식 변경으로 personal access token 발급 받는 것을 진행하였습니다.

깃허브 운용하는데 무리 없으시길 바라겠습니다.