kunkunwoo@blog:~$ 거누권의 생각깜지

circle ci에서 ssh key가 있음에도 repo를 가져오지 못하는 현상

· 배운 것 · 2분 읽기

에러코드

Using SSH Config Dir '/home/circleci/.ssh'
git version 2.34.1
Cloning git repository
Cloning into '.'...
Warning: Permanently added the ECDSA host key for IP address '140.82.114.4' to the list of known hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

exit status 128

상황

- ssh key는 문제없이 설정되어 있음
- checkout step시에 repo를 가져오지 못하는 문제가 있음


해결

- 정말 간단하게도.. ssh key를 지웠다가 다시 연결하면 됨

여기!
여기!

참고

https://batsov.com/articles/2022/09/20/resetting-circleci-checkout-ssh-keys/

Resetting CircleCI Checkout SSH Keys