-
克隆gitlab上的项目遇到的问题:
git@gitlab.xxxxx: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. -
解决办法
ssh-keygen -t rsa -C "xxx@qq.com" //后面为user的email
- 遇到的问题:
Git Enter passphrase for key ‘/Users/xxx/.ssh/id_rsa’ - 获取key
open ~/.ssh
- 就会在桌面上自动弹出ssh文件,再选择id_rsa.pub文件,用编辑器打开,复制都GitHub上即可。
- gitlub上settings->ssh key