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