当前位置:   article > 正文

配置了publickey还是报错Permission denied (publickey)._this key is not known by any other names.

this key is not known by any other names.

报错信息如下:

Cloning into 'xxx'...
The authenticity of host '[xxx.xxx.xxx.xxx]:xxx ([xxx.xxx.xxx.xxx]:xxx)' can't be established.
ED25519 key fingerprint is SHA256:pYYGZQybbyX78/iq/6X5VI3Gxon09NDeza9bftvbaqk.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[xxx.xxx.xxx.xxx]:xxx' (ED25519) to the list of known hosts.
xxx@xxx.xxx.xxx.xxx: Permission denied (publickey).
fatal: Could not read from remote repository.

上面的报错说明rsa已经被弃用

解决方案:

用ed25519代替rsa,例如:

 ssh-keygen -t ed25519 -C "xxx.xxx@xxx.com"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/470215
推荐阅读
相关标签
  

闽ICP备14008679号