github问题:Permission denied (publickey).

1.打开终端:$ ssh-keygen -t rsa -C "github账号"
2.一直回车,直到出现一串key
3.然后打开这句话Your public key has been saved in xxx 之后的那个文件,复制里面全部的key,在github的setting里面添加一个ssh-key

你可能感兴趣的:(github问题:Permission denied (publickey).)