星星不再亮 2022-03-16 09:25 采纳率: 75%
浏览 26
已结题

ssh init 时出现问题有密钥,但是还是显示密钥错误

在ssh下载代码的时候显示
The authenticity of host ’*‘ can't be established.
RSA key fingerprint is SHA256:StnbZthBUwxfIG2MozycRM+jEkiGODrjoaM97juKDj4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '
**' (RSA) to the list of known hosts.
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

但是我本地同样有这个密钥,并且已经把这个密钥给复制到了ssh setting那里面,请问怎么解决。
我在网上看得重新生成密钥再重新添加进去,但是好像不行
*是链接的网址

  • 写回答

1条回答 默认 最新

  • 叼不起的烟斗 2022-03-16 09:53
    关注

    代码仓库的删除原先的ssh-key,客户端上重新ssh-Keygen生成密钥,将密钥拷贝到代码仓库的ssh配置里面试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 3月24日
  • 已采纳回答 3月16日
  • 创建了问题 3月16日

悬赏问题

  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来