끄적끄적(Memo)/레퍼런스(reference)

Github 인증 오류 해결

Chaany 2023. 4. 9.
728x90

git pull을 하는데 해당 오류가 발생하였다.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for '*'

원인은

1. github 정책에서 password 권한 인증 기준이 바뀐 것(2021.08.13일자 부로)

2. 레포지토리에서 접근 권한 부여 기준이 바뀐 것

으로 추측된다.
해당 레포지토리 접근 권한이 있는 계정으로 github을 접속하여 settings-profile에서 토큰을 (재)생성한 후
git config --global user.password "{token값}"을 한 후 Pull하니 잘 수행되었다.

728x90

댓글