备忘
ssh-keygen -t rsa 创建私钥和公钥,将公钥设置到git仓库
git clone ssh://xxx
结果报错:
Cloning into 'xxx'...
xxx: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
换一种加密方式ed25519
ssh-keygen -t ed25519 -C "xxx@xx.com"
再次clone,success!
网上太多出处,随便写个转自: