You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows环境下Obsidian Git插件SSH认证失败问题求助

问题:Obsidian Git插件SSH认证失败(Windows环境)

我已经查阅大量相关指南、教程及帖子,但仍未找到合适的解决方案。我在Windows电脑上配置Obsidian及其GitHub插件,已成功克隆GitHub私有仓库到本地,且通过Git Bash和PowerShell均可SSH访问该仓库,执行拉取、推送、合并等操作无异常。但启用Obsidian Git插件后,始终出现以下错误:

git obsidian error: 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.

同时还会出现另一个报错:

plugin:obsidian-git:29119 Uncaught (in promise) Error: 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.

    at Object.action (plugin:obsidian-git:29119:25)
    at PluginStore.exec (plugin:obsidian-git:29144:25)
    at eval (plugin:obsidian-git:26649:43)
    at new Promise (<anonymous>)
    at GitExecutorChain.handleTaskData (plugin:obsidian-git:26647:16)
    at GitExecutorChain.eval (plugin:obsidian-git:26631:44)
    at Generator.next (<anonymous>)
    at fulfilled (plugin:obsidian-git:25476:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

我清楚这是认证环节出现问题,但无法理解为何上述工具可正常访问仓库,插件却失败。我尝试过使用Git CLI缓存凭证、切换为HTTPS地址,但均无效,恳请各位提供解决方案。


内容的提问来源于stack exchange,提问作者SKiD

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 02:25:55