V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yazoox
V2EX  ›  GitHub

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

  •  
  •   yazoox · 2020-07-28 17:56:12 +08:00 · 1720 次点击
    这是一个创建于 1359 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2020-07-31 15:49:13 +08:00
    FragmentLs
        1
    FragmentLs  
       2020-07-28 18:01:59 +08:00
    ......那不是报错,yes continue 就行了
    ayase252
        2
    ayase252  
       2020-07-28 18:07:09 +08:00 via iPhone
    yes
    SjwNo1
        3
    SjwNo1  
       2020-07-28 18:08:47 +08:00
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    这一步需要输入 yes,并不是习惯动作回车哦
    yazoox
        4
    yazoox  
    OP
       2020-07-31 15:44:59 +08:00
    @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
       2020-07-31 15:49:13 +08:00
    并且,我测试过
    ssh -T [email protected]
    Hi, xxx! You've successfully authenticated, but GitHub does not provide shell access.

    还有哪里不对么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5965 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:03 · PVG 10:03 · LAX 19:03 · JFK 22:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.