Sourcetree SSH

rctneil
rctneil
Community Member

Hi,

Never used Sourcetree before but just installed it to try it out. I'm connecting my GH account and when i choose SSH, it only gives me the option to create a new key. How can I get the key in 1PW to be used?

1PW says it's all configured correctly. ST doesn't provide many options.

Can someone help?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

Comments

  • rctneil
    rctneil
    Community Member

    Something really weird is going on. I've followed all the instructions online but still not working. I tried Git Tower too and when I try to pull or push from / to my repo's I get error like:

    The key is on my GitHub account. If I run ssh-add -l then I see my three keys from 1Password listed.

    What's going on? I just want to get this sorted.

  • rctneil
    rctneil
    Community Member

    This is driving me INSANE!!!!

    What the heck is going on?

    I've basically sat and researched this for the majority of the day and can't for the life of me figure out what's going on.

    In Tower I try pushing or pulling from a remote repo and I get the error above. The repo's are mine and I have full access to them.

    My key is correctly added to Github, it's in 1Password in my Private vault and also shows up when I run ssh-add -l.

    If I test in terminal ssh -T git@github.com, this also works fine.

    Sourcetree is also still not seeing the keys.

    My SSH config file looks like:

    Host * IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

    and the 1Password config file looks like:

    `# This is the 1Password SSH agent config file, which allows you to customize the

    behavior of the SSH agent running on this machine.

    #

    You can use it to:

    * Enable keys from other vaults than the Private vault

    * Control the order in which keys are offered to SSH servers

    #

    EXAMPLE

    #

    By default, all keys in your Private vault(s) are enabled:

    #

    [[ssh-keys]]

    vault = "Private"

    #

    You can enable more keys by adding more [[ssh-keys]] entries.

    For example, to first enable item "My SSH Key" from "My Custom Vault":

    #

    [[ssh-keys]]

    item = "My SSH Key"

    vault = "My Custom Vault"

    #

    [[ssh-keys]]

    vault = "Private"

    #

    You can test the result by running:

    #

    SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ssh-add -l

    #

    More examples can be found here:

    https://developer.1password.com/docs/ssh/agent/config

    [[ssh-keys]]
    vault = "Private"`

    Please can someone help?!!! I'm desperate here!

  • mckngbrd
    mckngbrd
    Community Member

    @rctneil I haven't used SourceTree, but a few things to double check that have caught me in the past:

  • BSd3v
    BSd3v
    Community Member

    Good day,

    Not sure if this helps you, but after adjusting all of these settings I found this under the "Git" section:

    The default it seems is to use the "Embedded" version, this ignores any of the system settings that the instructions dictate. Switching this to "System" allowed 1Password to act as the SSH Agent. :)