bower install 에러
github code pull download error

//-------------------------------------
- 에러 메시지
 fatal: Could not read from remote repository. git@github.com: Permission denied (publickey).

//-------------------------------------
- 해결 방법

    - 접속 테스트
ssh -vT git@github.com


    - SSH agent  시작
ssh-agent -s

    - 키 찾기
ssh-add -l -E sha256


    - 키 생성
ssh-keygen -t rsa -b 4096 -C "email@email.com"

    - 등록
ssh-add ~/.ssh/id_rsa

    - 확인
cat ~/.ssh/id_rsa.pub


    - github.com 설정 - 키 등록
- Settings -> Access : SSH and GPG keys -> New SSH key ->
C:\Users\userID\.ssh\id_rsa.pub 파일 내용 붙혀넣기

 


//-------------------------------------
// 참고
https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey

https://careerkarma.com/blog/git-permission-denied-publickey/



반응형
Posted by codens

댓글을 달아 주세요