-
-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Unable to auth to Github via ssh on MacOS using 1password ssh-agent #824
Comments
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). |
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 |
Great that it's able to interact with 1passwort somehow, at least! |
Thanks Vincent, closing this as a workaround is available (use HTTPS rather than SSH) |
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: