Github Authentication Failed - ... GitHub不提供shell访问

标签 git github ssh-keys

$ git remote add origin git@github.com:lut/EvolutionApp.git
fatal: remote origin already exists.

$ git push -u origin master
fatal: 'EvolutionApp' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我的 key 添加成功

 $ ssh -T git@github.com
 Hi lut! You've successfully authenticated, but GitHub does not provide shell access.

Github 文章 https://help.github.com/articles/generating-ssh-keys/说“外壳访问”不应该成为问题?可能是什么问题?

最佳答案

尝试重新定义远程源的 ssh url:

git remote set-url origin git@github.com:lut/EvolutionApp.git

然后重试。

只有 git remote set-url可以更改现有的远程 URL(与 git remote add 相反,添加 远程名称和 URL)
此处,问题是现有远程“originEvolutionApp 的 URL:需要将其替换为有效的。
考虑到一开始就没有 HTTPS URL,使用 git config url."ssh://git@github.com/".insteadOf https://github.com/ 不会有帮助。

关于Github Authentication Failed - ... GitHub不提供shell访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26953071/

相关文章:

github - 有没有办法通过 GitHub 操作推送更改?

ssh - OpenSSH - 是 ssh-agent 转发吗?

git - 如何在 Jenkins Workflow 插件中使用 SSH key

git - 通过 pull 入 SmartGit 删除的文件 - 我可以恢复它们吗 (Windows 10)

linux - OpenShift 存储库的 Git 克隆在 Linux 中挂起,但在 Windows 中不挂起

git - 在 Github 中为多个分支创建一个分支保护规则

git - 如何长时间设置 git cache --timeout?

php - 如何使用 ssh2_publickey_add 添加公钥

git - repo 工具无法根据标签 pull

git - 如何在没有较早提交的情况下推送一个 Git 提交?