remote: Invalid username or password.

1 개요[ | ]

remote: Invalid username or password.
# git push
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/user01/repo01.git/'

2 문제 상황[ | ]

# git config --list | grep helper
credential.helper=store
# cat /root/.git-credentials
https://testuser:ghp_5Vprt7vxX91ZzbdfBhD3FHjJln68q02su4Lw@github.com
# git pull
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/user01/repo01.git/'
# cat /root/.git-credentials
#
→ git pull 또는 git push를 할 때, 인증 실패 발생하고 .git-crendentials 파일 내용이 사라지는 현상
→ git-credentials에 기록된 token이 만료되었다고 보고 더 이상 쓸모가 없으므로 삭제해버리는 것 같다.
→ 새 토큰을 발급하여 교체해야 한다.

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}