Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- linux dns
- 국비지원교육
- reclaim
- ssh tunneling
- 127.0.0.53
- CoreDNS
- PV
- 메가바이트스쿨
- systemd-resolved
- L2 통신
- Layer 2
- Spring boot
- 내일배움카드
- MariaDB
- L2 통작
- 개발자취업부트캠프
- PVC
- DNS
- linux domain
- dns forward
- ARP
- RDB
- k8s
- 패스트캠퍼스
- MegabyteSchool
Archives
- Today
- Total
hoonii2
[Jenkins] Jenkins to Github Repo ssh 최초 시도 오류 본문
1. 상태
Jenkins 에서 Github Project 를 ssh 방식 (RSA) 으로 접근하기 위해 설정 중
Github 에는 공개키, Jenkins Credentials 에는 개인키를 올바르게 넣었으나

이런 host key verification failed 오류가 발생하는 것을 확인했다.
2. 해결 방안
Jenkins Container 에서 Github Repo 에 한 번 ssh 접속해서 known_hosts 에 등록
( git ls-remote -h git@~~~.git HEAD )
( 꼭 'yes' 로 ssh 접근을 계속 해준다 )
user@Docker:/home/jenkins$ docker exec -it jenkins-docker /bin/bash
root@fc2a9635f16e:/#
root@fc2a9635f16e:/# git ls-remote -h git@github.com:hoonii2/CI_CD.git HEAD
The authenticity of host 'github.com (20.200.245.247)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,20.200.245.247' (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
root@fc2a9635f16e:/#
3. 해결

이후 오류메시지 없이 ssh 접속 성공 확인
4. 출처
https://stackoverflow.com/questions/15174194/jenkins-host-key-verification-failed
Jenkins Host key verification failed
I have a problem with jenkins, setting "git", shows the following error: Failed to connect to repository : Command "git ls-remote -h https://person@bitbucket.org/person/projectmarket.git HEAD" ret...
stackoverflow.com
'개념 공부 > (인프라) 04. 컨테이너' 카테고리의 다른 글
| [k8s] CoreDNS 및 k8s Cluster 내 DNS 조회 문제 Trouble shooting Deep Dive (0) | 2023.08.01 |
|---|---|
| [k8s] PV, PVC 의 Life Cycle 및 재활용 (0) | 2023.08.01 |
| [k8s] CoreDNS 를 통한 외부 DNS 조회 문제 (0) | 2023.06.12 |
| [컨테이너] 02. 쿠버네티스 개념 (0) | 2022.09.28 |
| [컨테이너] 01. 컨테이너, 도커, 쿠버네티스 (0) | 2022.09.28 |
Comments