gitlab 密钥登录问题
问题描述:
输入 git push -u origin master后提示:
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
解决办法:
输入 ssh -i 密钥存放地址/密钥名字 git@gitlab.com
输入eval ssh-agent -s
输入ssh-add 密钥存放地址/密钥名