github CLI 로그인 에러 해결방법.(Access token error) remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
안녕하세요 달소입니다!
오랜만에 깃허브를 쓰려고하니 벌써 머리가아프군요...
에전에 심심해서 gitlab을 썼던걸 생각하고 썼다가 초반부터 막혔습니다 ㅋㅋㅋ
이번글은 github CLI 로그인 에러가 발생했을때 해결방법입니다.
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
에러에서 보시다 시피 패스워드 인증관련 오류인데
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
내용을 확인해보면 plain text pw말고 계정별로 별도의 액세스 토큰키를 받아서 사용하라고 합니다.
Username for 'https://github.com': dalso0418
Password for 'https://dalso0418@github.com':
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.
Access Token Key 발급받기
좌측 최 하단에 Developer settings로 이동합니다.
Personal access tokens -> Generate new token 으로 토큰을 생성합니다.
이제 토큰키의 메모부터 Expire 기간
토큰키에 부여할 권한들을 부여할수있습니다.
이런저런 권한을 넣고 이 키를 복붙해서 pw로 사용하시면 됩니다.
해당 토큰을 복사해서 password에 넣어주시면 아래처럼 prush가 잘됩니다!
https://svrforum.com/develop/326709