V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yazoox
V2EX  ›  GitHub

为什么我的 SSH 没有办法连接到 github?

  •  
  •   yazoox · Jul 28, 2020 · 2196 views
    This topic created in 2100 days ago, the information mentioned may be changed or developed.

    windows 10 LTST 2019

    ~/.ssh/id_isa

    本来有一个配置,但这个是连接公司的 gitlab 现在想连接 github,所以又用 ssh-keygen 生成了一个 yazoox_isa

    并且也 ssh-add 成功了。github 上面,也添加了该 SSH Key

    但是我 git clone github 上面的项目时,却报错,如下:

    The authenticity of host 'github.com (13.250.177.223)' can't be established.
    RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6Y8Es5.
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    

    这里的 SHA256 我也不知道是啥,在 known_hosts 里面没有该值。

    然后下面的选择 fingerprint 后,我把 yazoox_isa.pub 里面的内容帖上去,也不行,还是失败。

    请教一下,这个到底该如何设置?哪里出了问题?

    谢谢!

    5 replies    2020-07-31 15:49:13 +08:00
    FragmentLs
        1
    FragmentLs  
       Jul 28, 2020
    ......那不是报错,yes continue 就行了
    ayase252
        2
    ayase252  
       Jul 28, 2020 via iPhone
    yes
    SjwNo1
        3
    SjwNo1  
       Jul 28, 2020
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    这一步需要输入 yes,并不是习惯动作回车哦
    yazoox
        4
    yazoox  
    OP
       Jul 31, 2020
    @FragmentLs @ayase252 @SjwNo1

    兄弟们,不行啊!我输入了 yes.
    但是当我 git clone 时,还是出错呢。

    ···
    [email protected]: Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    ···
    yazoox
        5
    yazoox  
    OP
       Jul 31, 2020
    并且,我测试过
    ssh -T [email protected]
    Hi, xxx! You've successfully authenticated, but GitHub does not provide shell access.

    还有哪里不对么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3588 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    ♥ Do have faith in what you're doing.