Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoError connecting to agent: No such file or directory
I just saw the post & beta for SSH + CLI integration and this seems amazing. +1 Cant wait for the final release.
However, I'm unable to get this working at all.
* I also use a shell called fis...
Former Member
3 years agoAnd I think in all of the moving backwards & forwards I might have not put the ssh keys in the right vault.
I did verify it again now, and they keys are in the right vault. (I have 2 SSH keys... But I see that also causes an issue, because I don't know how to specify with 1Password to use which hey for which gh account, so for now, I'm just using the one)
I have 2 MacBooks, a personal one, and one for work.
My personal machine:
* Worked fine. Did the upgrade to 1Password 8 (App + Browser Plugin).
* SSH sees my keys + I can login to github
Work machine:
```
~/.ssh î‚° ssh-add -l
finally returns the key that is inside the vault! 🥳
~/.ssh î‚° ssh -T git@github.com
fails
~/.ssh î‚° ssh -o 'IdentitiesOnly=no' -T git@github.com
succeeds! 🥳
```
I then removed the IdentiesOnly flag from my .ssh/config
and I can now login to gh using the SSH key stored in 1 Password.
This is probably a question for another thread.
But is there a way to specify which key to use for which gh repo?
```
Host *
IgnoreUnknown UseKeychain
AddKeysToAgent yes
UseKeychain yes
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Host smg.github.com
HostName github.com
User git
IdentityFile ~/.ssh/rohan_smg_generated. # I would like to move this to 1Password too
Host github.com
HostName github.com
User git
```