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 密鑰存放地址/密鑰名git

相關文章
相關標籤/搜索