使用gitlab之前已經(jīng)在gitHub將密鑰配置后,在使用git clone拉取代碼的時(shí)候依然報(bào)錯(cuò),嘗試分別用ssh和http拉取都是相同報(bào)錯(cuò),使用cat ~/.ssh/id_rsa.pub查看公鑰沒(méi)有問(wèn)題,在這個(gè)情況下可能就是公鑰目錄存在問(wèn)題文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-546877.html
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解決辦法文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-546877.html
cd ~
cd .ssh/
ssh-keygen -t ed25519 -C "<comment>" //<comment>為郵箱
到了這里,關(guān)于gitLab在配置完ssh密鑰后依然提示Permission denied (publickey)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!