IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

原因是因为SSH密匙权限的问题.

解决方法是:打开git IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

在其中输入ssh-****** -t rsa -C "邮箱地址"

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

一直回车.

在C:\Users\Administrator目录下生成一个.ssh目录,

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

其中id_rsa是Id-rsa是你的私钥

将id_rsa.pub中用笔记本打开

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

将这段文字复制到你的码云或者github账户的公钥下边.我用的是码云,如下图.

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

然后在IDEA中 输入git clone [email protected]:**/**.git

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.

克隆成功!

push 后的样子

IDEA在clone的时候提示Permission denied (publickey). fatal: Could not read from remote repository.