Git error: “Host Key Verification Failed” when connecting to remote repository

前端 未结 19 1280
迷失自我
迷失自我 2020-11-22 11:40

I am trying to connect to a remote Git repository that resides on my web server and clone it to my machine.

I am using the following format for my command:



        
19条回答
  •  被撕碎了的回忆
    2020-11-22 12:38

    I was facing the same error inside DockerFile during build time while the image was public. I did little modification in Dockerfile.

     RUN git clone  https://github.com/kacole2/express-node-mongo-skeleton.git /www/nodejs
    

    This would be because using the git@github.com:... syntax ends up > using SSH to clone, and inside the container, your private key is not > available. You'll want to use RUN git clone > https://github.com/edenhill/librdkafka.git instead.

提交回复
热议问题