티스토리 뷰
[문제사항]
- ssh 키를 새로 만들었습니다.
< 관련포스트: ssh 키 만드는 방법 >
- Personal Access Token 을 추가했습니다.
< 관련포스트: User Access Token 추가하는 방법 >
- Private 래포지토리를 Collaborate하여, 레포지토리 접근권한도 얻었습니다.
- git config --global user.email/user.name 도 collaborator 계정으로 했습니다.
< 관련포스트: git config --global user.email / user.name 등록하는 명령어 >
그런데! 제 아이맥 로컬에서 private 래포지토리를 클론하지 못했습니다.
git clone git@github.com:loveAlakazam/래포지토리.git
Cloning into '래포지토리명'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
아래의 메시지는 ssh에 로그인된 계정이 비공개 래포지토리에 대한 접근권한이 없다 의미의 메시지입니다.
혹시 ssh에서 로그인한 계정은 전혀다른 계정인가 예상했습니다.
[해결방법]
원인은 ssh계정으로 로그인된 계정이 collaborator 계정과 달랐기 때문입니다. 즉 제 3자의 계정이었습니다!
ssh 로 설정된 계정 확인이 필요합니다.
(1) 현재 ssh에 로그인된 github 계정을 확인해봅니다.
$ ssh -T git@github.com
Hi silver-choi! You've successfully authenticated, but GitHub does not provide shell access.
결과는 silver-choi 라는 엉뚱한 사람(이전 회사계정) 이 ssh 인증로그인이 되어있었습니다 -_-;
(2) ssh-add 로 새로 만든 키를 다시 등록 합니다.
$ ssh-add ~/.ssh/id_ed25519
(3) 등록후 다시 로그인된 깃헙 계정을 확인해봤습니다.
$ ssh -T git@github.com
Hi eunkangchoi! You've successfully authenticated, but GitHub does not provide shell access.
그리고 다시 래포지토리를 클론했더니 정상적으로 되었습니다.
'Backend > 꾸준히 TIL' 카테고리의 다른 글
MongoParseError: options usecreateindex, usefindandmodify are not supported (0) | 2022.08.21 |
---|---|
VSCode ESLint 자동으로 적용하기 (0) | 2022.08.20 |
VSCode 편리한 환경 만들기 (0) | 2022.08.10 |
IT관련 "개발용어"에 익숙해지자 2편 - Restful API 와 TDD (0) | 2022.08.03 |
IT관련 "개발용어" 에 익숙해지자 1편 - 유지보수 와 리팩토링 (0) | 2022.08.02 |
- Total
- Today
- Yesterday
- Jekyll
- MySQL
- 나도 할 수 있다
- 개발용어
- 미완
- TDD
- 참고
- OS
- nestjs
- 한달어스
- 한달독서
- gem
- 습관개선
- 갓생살자
- 클린아키텍쳐
- RDBMS
- git
- typeORM
- vscode
- nestjs jest
- Mongoose
- 스마트폰중독
- jest
- Nest.js
- 바이트디그리
- node.js
- TypeScript
- IT용어
- MongoDB
- 디지털디톡스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |