Git) Support for password authentication was removed (mac)
어느날 평소처럼 커맨드라인에서 push를 했는데 다음과 같은 오류가 났다.
사실 한달전인가도 이런 일이 있었다.
그때 찾아봤을때 앞으로 Github.com에 터미널에서 접근할때 더이상 계정 비밀번호를 요구하자 않고 토큰을 요구할것이니 생성하라고 했었다. 그리고 모든 개발자들이 토큰을 생성하도록 8월13일 이전에도 한달에 수차례씩 특정시간에 일부러 이런 메시지를 띄운다고 했었는데
그냥 귀찮아서 안만들었다..
이제는 더이상 미룰수 없어서 Please see 라고 적혀있는 저 페이지로가서 그대로 따라했다
Token authentication requirements for Git operations | The GitHub Blog
Beginning August 13th, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.
github.blog
1. 먼저 personal access token을 생성하란다.
다음 링크로 가면 상세하게 이미지와 함께 나와있다.
Creating a personal access token - GitHub Docs
Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line. If you want to use a PAT to access resources owned by an organization that uses SAML SSO, you must authorize the
docs.github.com
2. 이제 mac의 keychain access에서 적용해야한다
Updating credentials from the macOS Keychain - GitHub Docs
Note: Updating credentials from the macOS Keychain only applies to users who manually configured a PAT using the osxkeychain helper that is built-in to macOS. We recommend you either configure SSH or upgrade to the Git Credential Manager Core (GCM Core) in
docs.github.com
mac spotlight에서 keychain access를 검색하고
keychain access에서 github.com을 검색.
여기서 암호보기를 눌러서 토큰생성할때 받았던 토큰 비밀번호를 입력한다.
그 후 push 해보면 한번더 비밀번호를 요구하고 push가 잘된다.