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

前端 未结 4 1467
梦毁少年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:23

    As you are attempting to connect to Github using SSH for the first time (no existing entry for Github in ~/.ssh/known_hosts yet), you are being asked to verify the key fingerprint of the remote host. Because, if an intruder host represents itself as a Github server, it's RSA fingerprint will be different from that of a GitHub server fingerprint.

    You have two options.

    1. You may just accept, considering you don't care about the authenticity of the remote host (Github in this case), or,

    2. You may verify that you are actually getting connected to a Github server, by matching the RSA fingerprint you are presented to (in the prompt), with GitHub's SSH key fingerprints in base64 format.

    The latter option is usually more preferable.

提交回复
热议问题