Flower in my dev/Others

<github> remote: Invalid username or password.

꽃선생 2020. 1. 29. 22:27

[remote: Invalid username or password 에러해결]

1. 저장소 주소를 ssh로 수정한다.

git remote set-url origin <ssh주소>

2. 설정 확인

git config -l

3. 재시도 후 아래와 같은 에러가 발생한다면,

Warning: Permanently added the RSA host key for IP address

git@github.com: Permission denied (publickey)

fatal: Could not read from remote repository

 

Please make sure you have the corrent access rights

and the repository exists.

pub키를 만들고 내용을 복사하여

github/해당저장소/settings/Deploy keys 에 등록한다.

Allow write access에 체크해야 push가 가능하다.

4. push 성공

Allow write access에 체크를 하지 않으면 read only 상태이기 때문에 push를 하지 못한다.