为什么我不能将我的laravel项目推到github
我已经做了讨论论坛,但我不能把我的项目推到github,我已经尝试了所有的方法,但仍然不起作用 我已经在github中设置了ssh密钥为什么我不能将我的laravel项目推到github,git,github,Git,Github,我已经做了讨论论坛,但我不能把我的项目推到github,我已经尝试了所有的方法,但仍然不起作用 我已经在github中设置了ssh密钥 root@miky-Lenovo-ideapad:/opt/lampp/htdocs/discussionforum# git remote add origin git@github.com:milan2056/discussionforum.git root@miky-Lenovo-ideapad:/opt/lampp/htdocs/discussionfo
root@miky-Lenovo-ideapad:/opt/lampp/htdocs/discussionforum# git remote add origin git@github.com:milan2056/discussionforum.git
root@miky-Lenovo-ideapad:/opt/lampp/htdocs/discussionforum# git push -u origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我需要将我的项目上传到githubgithub确实有一些可以找到的针对此错误的测试步骤。鉴于错误和url,在生成SSH密钥时可能未正确配置某些内容。我会确保在您的设置中,它表明您在过去实际使用过该ssh密钥 我以普通用户的身份生成私钥,并以root用户的身份推送项目,因此出现了此错误您能否尝试运行以下命令:
ssh-vgit@github.com
和您的问题,并添加输出。是否希望在按下时询问您的用户名/密码?(帮助将其还原为https),或者在github上设置ssh密钥时需要帮助吗?可能重复