【发布时间】:2017-12-18 03:30:38
【问题描述】:
我收到错误:
VehicleXray git:(master) ✗ git push live master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
命令“git remote -v”显示:
live ssh://root@vehiclexray.com/var/repo/VehicleXray.git (fetch)
live ssh://root@vehiclexray.com/var/repo/VehicleXray.git (push)
origin https://github.com/enayet123/VehicleXray.git (fetch)
origin https://github.com/enayet123/VehicleXray.git (push)
我显然是 GitHub 的新手,对如何使用它了解甚少。我已经尝试使用本地存储在我的笔记本电脑上的私钥和提供给我的服务器和 GitHub 的公钥创建一个 SSH 密钥。我做错了什么?
【问题讨论】: