Skip to main content
October 1, 2022
Question

Cannot use Sublime Merge and SSH key in 1Password

  • October 1, 2022
  • 11 replies
  • 1061 views

Hi, wondering how i can diagnose the issue as tried what I can.

I have Intellij working with SSH key inside 1Password but when I attempt to use Sublime Merge I just get

'Permission Denied(publickey) fatal: Could not read from remote repository. Please make sure you have the correct access rights'

When I use Intellij I get a dialog prompt from 1Password to auth. I get nothing when using Sublime Merge.

Any ideas ?

Thanks


1Password Version: 8.9.4
Extension Version: Not Provided
OS Version: 12.6
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=sublime%20merge

11 replies

floris_1P
1Password Employee
October 3, 2022

A few questions:
- Does it work when invoking Git in your terminal?
- Which version of Sublime Merge are you on?
- What do you have set as the Git binary in the advanced settings?

October 3, 2022

Thanks,

1) Yes, using /usr/bin/git
2) version 2077
3) System

October 3, 2022

Guess something is missing in my env. If i invoke sublime merge from the command line then it works as expected. It I launch it from Spotlight / RayCast then it fails.

October 4, 2022

Would something like https://evilmartians.com/chronicles/stick-with-security-yubikey-ssh-gnupg-macos help ?

i.e. linking $SSH_AUTH_SOCK to 1Password via launch control ?

floris_1P
1Password Employee
October 4, 2022

Did you set IdentityAgent in your SSH config?

October 4, 2022

Yes it has

Host *
IdentityAgent "~/.1password/agent.sock"

October 25, 2022

Hi, any idea of a fix ?

Thanks

November 14, 2022

Is there someone from 1Password who can help please. Now if i run Sublime Merge the whole app locks up if I do not run it from the command line to pickup the correct SSH agent.

At this point I will will stop having to use 1Password for SSH Agents as it's just creating too many issues.

Thanks

Jack_P_1P
1Password Employee
November 17, 2022

Hi @berksgr:

To confirm, is IdentityAgent set in your SSH config, as well as SSH_AUTH_SOCK set as an environment variable? Additionally, if you're using ~/.1password/agent.sock as the location, have you created a symlink from the socket's original location in ~/Library/Group Containers? Get started Developer Documentation

Let me know.

Jack

November 21, 2022

Yes it works fine in other apps like Intellij. Just not Sublime Merge.