Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
arnaudb
2 years agoNew Contributor
SSH Agent : Connection refused
Not sure if it's related to an update, everything was working fine so far.
I can't get the agent to load the keys on git requests anymore.
The problem :
git fetch
git@github.com: Permission...
Michael_Mercuri
2 years agoFrequent Contributor
One observation that strikes me as unusual in your original post:
git fetch git@github.com: Permission denied (publickey).
This would imply your public key was obtained and tried, which failed. However, ssh-add -l
is showing the connection refused error. I don't understand how this could be.
I think this is related to @github.com-arnaudb
vs @github.com
. See my comment below regarding this.
One thing which may make troubleshooting easier with GitHub (I realize this is unrelated to the SSH agent socket issue):
- add
User git
in for the github.com section in your~/.ssh/config
.
The git fetch command you included in the original post is using @github.com
and not @github.com-arnaudb
in your ~/.ssh/config
file. If you want both to work, you can update the host setting to include both like this:
Host github.com-arnaudb github.com
Hostname github.com
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
ForwardAgent yes
User git
Curious what happens when you try ssh -v -T git@github.com
. If it's working you should see:
Hi <your GitHub username>! You've successfully authenticated, but GitHub does not provide shell access.
The -v
option should help troubleshoot which keys are being attempted.
I'm not sure what else is in your ~/.ssh/config
file or what your intention is regarding the github.com-arnaudb
host setting, but depending on what you're trying to do, there may be better ways to setup your ssh config.