【问题标题】:Able to SSH into remote server, but unable to git push production能够通过 SSH 连接到远程服务器,但无法 git push 生产
【发布时间】:2018-08-08 12:45:44
【问题描述】:

我正在关注this guide 第 12 步,了解如何在远程服务器上设置推送到生产。

当我尝试 git push production master 时出现访问被拒绝错误。

user@example.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

但是,我可以通过 ssh root@example.com 登录。

我在 Windows 上使用 Putty 和 Laragon。

【问题讨论】:

  • 你能和我们分享一下实际错误信息吗?
  • 更新原帖
  • 不知道为什么这被否决了。我问错了吗?

标签: git ssh putty cmder


【解决方案1】:

解决此问题的方法是删除当前的生产遥控器并专门使用 root 用户重新添加它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-07-05
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    • 2022-07-11
    • 1970-01-01
    • 2017-08-01
    相关资源
    最近更新 更多