2010년 5월 1일, 2막

[git] clone 시 "no matching host key type found." 에러 발생 본문

Computer/Tips

[git] clone 시 "no matching host key type found." 에러 발생

창천(蒼天) 2022. 6. 14. 13:51

git clone 실행 시 오류 발생

no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.

 

해결책 : 

다음과 같이 옵션을 주어 git 명령 실행

ssh -oHostKeyAlgorithms=+ssh-dss" git clone test@127.0.0.1:test.git

 

git 명령시마다 옵션을 주는 것은 번거로운 일이니 git config에 등록

git config core.sshCommand "ssh -oHostKeyAlgorithms=+ssh-dss"

 

출처 : 해피쿠 블로그 - [Git] SSH로 git remote repository 접근 (happykoo.net)