Skip to content

[Bug]: obsidian-git doesn't seem to see SSH agent #971

@CedricLeon

Description

@CedricLeon

Describe the bug

I'm using obsidian-git on already a few device and wanted to add another Windows 11 laptop.
I followed the installation instruction which included SSH key generation added to ssh-agent, which is automatically started following GitHub doc, i.e., adding instructions to .bashrc.
When it came time to open a vault and run the "Clone an exising remote repository" command I kept getting a "Permission denied (publickey)" error.
Therefore, I decided to manually clone the repo, open it as a vault and then install the Git plugin, which seems to be an option if I follow the Getting Started doc.
However, even like that I keep getting the same error, see screenshot below. I have no problem Pulling/Pushing from Git Bash, even without entering my SSH key passphrase which seems to have been succesfully memorized by the ssh-agent.

Image

Question: Did I miss a step or is it possible the plugin cannot access the ssh-agent started from .bashrc.

I'm happy to provide any details / additional information.
Thanks for this great plugin and even greater support!

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

Steps to reproduce

  1. Setup SSH connection with ssh-agent on Windows 11
  2. Try cloning existing repo using obisidan-git

Expected Behavior

No response

Addition context

No response

Operating system

Windows

Installation Method

None

Plugin version

2.35.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions