Error “The authenticity of host 'github.com' can't be established. RSA key fingerprint ”

前端 未结 4 1482
梦毁少年i
梦毁少年i 2021-02-19 04:00

I use my project at work, but I would like to work with him from home as I can log into my home machine to work with my project.

However, from home, I see the following

4条回答
  •  青春惊慌失措
    2021-02-19 04:18

    Use one of the following two solutions:

    1) Set up the SSH key

    Follow the steps discussed on this GitHub help page.

    https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh

    2) Clone using git with HTTPS

    Type (copy/paste) the following commands in a terminal on the machine where you would like to clone the repository

    git config --global url."https://github.com/".insteadOf git@github.com:
    git config --global url."https://".insteadOf git://
    

    You can revert this change using the following commands

    git config --global url."git@github.com:".insteadOf https://github.com/
    git config --global url."git://".insteadOf https://
    

提交回复
热议问题