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

前端 未结 19 1220
迷失自我
迷失自我 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:26

    The solutions mentioned here are great, the only missing point is, what if your public and private key file names are different than the default ones?

    Create a file called "config" under ~/.ssh and add the following contents

    Host github.com
        IdentityFile ~/.ssh/github_id_rsa
    

    Replace github_id_rsa with your private key file.

提交回复
热议问题