본문 바로가기
컴퓨터 & IT (Computer & IT)/Github

[GitHub] remote: Support for password authentication was removed on August 13, 2021

by Physics 2021. 12. 12.
728x90
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: Authentication failed for

2021년 8월 13일부터 Github 측에서는 패스워드로 인증하는 것 대신에 personal access token을 이용하도록 변경을 했다. 이러한 변경 이유에는 패스워드로 인증하는 것이 해킹당할 수 있는 보안 상의 이유때문이다. 따라서 위와 같은 메시지를 받았다면, 아래와 같은 단계를 통해 토큰을 사용하는 방법으로 변경하자. 

1. GitHub 웹페이지 

  1) GitHub에 로그인 
  2) Setting을 클릭
  3) Developer Setting을 클릭 
  4) Personal access token을 클릭 
  5) Generate new token을 클릭 
  6) 이후 생성될 token에 대한 필요 정보들을 입력
  7) 입력이 완료가 되면 하단의 "Generate Token"을 클릭
  8) 생성된 토큰을 복사 

 


 

2. 로컬 컴퓨터

이후 자신의 로컬 컴퓨터 터미널에서 Git repository로 이동을 한 다음, 아래 명령어를 입력한다. [2]

$ git remote remove origin
$ git remote add origin https://<PERSONALACCESSTOKEN>@github.com/<USERNAME>/<REPO>.git

 이후 별도의 password 입력없이 원격 저장소로 push 및 pull이 가능하다. 

 

Reference 
[2] https://reactgo.com/github-password-authentication-removed/

728x90

'컴퓨터 & IT (Computer & IT) > Github' 카테고리의 다른 글

[Git] 복귀  (0) 2021.07.14
[GitHub] 병합과 충돌  (0) 2021.04.24
[Github] GitHub과 관련된 국내 도서  (0) 2021.04.23
[Github] 브랜치  (0) 2021.04.06
[Github] 서버 저장소 관련 내용 정리  (0) 2021.03.07

댓글