지구정복

[Git] remote: support for password authentication was removed on august 13, 2021. please use a personal access token instead. 에러 본문

데이터 엔지니어링 정복/Git-GitHub

[Git] remote: support for password authentication was removed on august 13, 2021. please use a personal access token instead. 에러

eeaarrtthh 2021. 8. 19. 12:07
728x90
반응형
SMALL

올해 8월 13일부터 원격 레파지토리에 접근할 때 사용자 비밀번호말고 개인 토큰을 이용해야 한다고 한다..ㄷㄷ

 

나는 기존에 아래 명령어로 비밀번호를 저장시켰었는데 이제 이를 초기화 시키고 토큰값으로 다시 저장해야 한다.

git config --global credential.helper store

 

토큰을 생성하고 등록하는 방법은 아래분 블로그를 참고!

https://firstquarter.tistory.com/entry/Git-%ED%86%A0%ED%81%B0-%EC%9D%B8%EC%A6%9D-%EB%A1%9C%EA%B7%B8%EC%9D%B8-remote-Support-for-password-authentication-was-removed-on-August-13-2021-Please-use-a-personal-access-token-instead

 

[Git] 토큰 인증 로그인 + 자격 증명 - remote: Support for password authentication was removed on August 13, 2021. Plea

windows 기준. AWS EC2 git clone 시 발생한 에러. 8월 13일 부로 push, clone, pull 시 비밀번호 대신 토큰을 사용하게 변경됨. Personal access token 이용 로그인 방법 정리. 1. https://github.com/ 접속 + 로..

firstquarter.tistory.com

 

이제 위에분처럼 토큰을 등록했으면 기존에 저장된 유저 네임과 비번을 초기화시켜줘야 한다.

아래 명령어로 초기화를 한다.

git credential-manager uninstall

cmd창 켜지면서 아무 키나 누르라고 하는데 아무키나 누르면 명령어가 실행된다.

 

 

그리고 다시 유저네임과 비번을 저장시켜주는 명령어를 실행한다.

git config --global credential.helper store

 

그리고 push나 pull을 하면 팝업창으로 유저네임과 토큰값을 입력하라고 나오는데 입력을 해주면

다음부터 push나 pull을 할 때 팝업창이 안뜨게 된다.

 

토큰 유효기간이 지나면 위 과정을 다시 반복해주면 된다!

728x90
반응형
LIST
Comments