测试 SSH 连接 显示 The authenticity of host ‘gitcode.com (116.205.2.91)‘ can‘t be established. RSA key fi

这个提示是正常的 SSH 第一次连接新主机时的安全确认提示,意思是:

这是第一次连接 gitcode.com 这个主机,系统还没有保存它的公钥指纹,想确认你是否信任它。


需要做的操作

  1. 输入 yes ,然后回车。

  2. 之后 SSH 会把 gitcode.com 的公钥指纹保存到你本地的 known_hosts 文件里,下次就不会再提示了。


示例过程:

ssh -T git@gitcode.com
The authenticity of host 'gitcode.com (116.205.2.91)' can't be established.
RSA key fingerprint is SHA256:aTlsy+4ARMC7nWyy5eKIqUkotk8yv7Jd+XXoP4EXj1Y.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitcode.com,116.205.2.91' (RSA) to the list of known hosts.
Hi username! You've successfully authenticated, but GitCode does not provide shell access.


如果看到类似上面最后一句 You've successfully authenticated... ,说明 SSH 配置成功了,可以正常使用 SSH 连接了。

接下来可以:

  • 用 SSH 方式克隆仓库了

  • 使用 git pullgit push 也会正常通过 SSH 认证

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

星空下的DeppBing

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值