git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

1.创建新的ssh密钥:
ssh-keygen -t rsa -b 4096 -C “flashaq@hotmail.com”
2.添加到github账号
https://github.com/settings/keys
SSH keys-》new ssh key
添加cat .ssh/id_rsa.pub

ssh -T git@github.com
ok!

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>