使用gitlab之前已经在gitHub将密钥配置后,在使用git clone拉取代码的时候依然报错,尝试分别用ssh和http拉取都是相同报错,使用cat ~/.ssh/id_rsa.pub查看公钥没有问题,在这个情况下可能就是公钥目录存在问题
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决办法
cd ~
cd .ssh/
ssh-keygen -t ed25519 -C "<comment>" //<comment>为邮箱