JuBin's personal study blog

[GitHub] 토큰 인증 로그인하기(21.08.13 이후 아이디/비번 로그인 지원 바뀜) 본문

GitHub

[GitHub] 토큰 인증 로그인하기(21.08.13 이후 아이디/비번 로그인 지원 바뀜)

JuBin 2021. 9. 9. 18:28
반응형
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: unable to access 'https://github.com/****/***.git/'

평소와 같이 작업 도중 push를 하려고 하니 다음과 같은 에러가 발생하였다.

알아보니 비밀번호 인증은 2021년 8월 13일까지만 지원하였고, 이후 개인 엑세스 토큰이나 ssh 둘중 하나로 인증을

해야한다.

 

 

Github Setting -> Developer settings -> Personal access tokens -> generate new token 으로

토큰을 생성한뒤 토큰을 개인적으로 잘 메모 해놓은뒤

 

gitbash를 통하여 

>> git remote set-url {upstream/origin} https://{TOKEN}@{REPOSITORY_URL

명령어 한줄로 인증을 바꾸었다.

  • {upstream/origin} : fetch or pull or push steam (upstream 혹은 origin)
  • {TOKEN} : github에서 생성한 token
  • {REPOSITORY_URL} : clone용 .git 주소가 아닌 실제 레포지토리 url

ex) git remote set-url origin https://{생성한 token값}@github.com/wnqlsdl63/Spring-WebFlux

 

 

반응형