Cannot use Sublime Merge and SSH key in 1Password

berksgrberksgr Junior Member
Community Member

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:sublime merge

Comments

  • floris_1Pfloris_1P

    Team Member

    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?
  • berksgrberksgr Junior Member
    Community Member

    Thanks,

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

  • berksgrberksgr Junior Member
    Community Member

    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.

  • berksgrberksgr Junior Member
    Community Member

    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_1Pfloris_1P

    Team Member

    Did you set IdentityAgent in your SSH config?

  • berksgrberksgr Junior Member
    Community Member

    Yes it has

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

  • berksgrberksgr Junior Member
    Community Member

    Hi, any idea of a fix ?

    Thanks

  • berksgrberksgr Junior Member
    Community Member

    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_1PJack.P_1P

    Team Member

    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

  • berksgrberksgr Junior Member
    Community Member

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

  • Jack.P_1PJack.P_1P

    Team Member

    Hi @berksgr:

    Thanks for following up. In that case, I'd like to ask you to create a diagnostics report from your Mac:

    Sending Diagnostics Reports (Mac)

    Attach the diagnostics to an email message addressed to [email protected].

    With your email please include:

    You should receive an automated reply from our BitBot assistant with a Support ID number. Please post that number here. Thanks very much!

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file