配置了publickey还是报错Permission denied (publickey).

报错信息如下:

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.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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

解决方案:

用ed25519代替rsa,例如:

 ssh-keygen -t ed25519 -C "[email protected]"

猜你喜欢

转载自blog.csdn.net/gongjdde/article/details/129696842
今日推荐