赞
踩
报错信息如下:
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"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。