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

posted on 2017-09-15 13:27  suosui  阅读(567)  评论(0编辑  收藏  举报

导航