You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running git operations on same repository within Obsidian causes permission error
Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)
[email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Steps to reproduce
Using Git in Obsidian to try and access remote github repository via ssh while using 1password ssh-agent
Expected Behavior
No response
Addition context
No response
Operating system
macOS
Installation Method
Other
Plugin version
2.30.1
The text was updated successfully, but these errors were encountered:
I guess you have some setup for your ssh-agent in your .bahsrc, .zshrc or similar. Could you share that? These scripts only affect your shell and not Obsidian (unless you start Obsidian from the terminal, in that case it should work).
For now, I suggest you to set the SSH_AUTH_SOCK env variable yourself in the plugins settings.
Setting env var SSH_AUTH_SOCK="~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" in the plugin or launching Obsidian from terminal didn't resolve the issue. I edited the remote (option: Git: Edit Remotes) and changed the remote from ssh to https as a work around.
Could you try it without the quotes? And maybe try replacing the ~ with I guess /home/<your-username>, but I'm unsure there. SSH_AUTH_SOCK=/home/<your-username>/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock
And share any errors you might encounter, please.
Describe the bug
.ssh/config is correctly configured to use 1password ssh agent:
Host *
IdentityAgent "~/Library/Group Containers/xxxxxxxxx.com.1password/t/agent.sock"
Output of ssh-add shows correct ssh key:
SSH_AUTH_SOCK=~/Library/Group\ Containers/xxxxxxxxx.com.1password/t/agent.sock ssh-add -l
Access to repo via git cli works
Running git operations on same repository within Obsidian causes permission error
Relevant errors (if available) from notifications or console (
CTRL+SHIFT+I
)Steps to reproduce
Using Git in Obsidian to try and access remote github repository via ssh while using 1password ssh-agent
Expected Behavior
No response
Addition context
No response
Operating system
macOS
Installation Method
Other
Plugin version
2.30.1
The text was updated successfully, but these errors were encountered: