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 agoI did mess around with some additional setting sin my fish_config file and just redid the whole setup from the ground up.
I updated my fish_config to contain this (previously it was wrapped in quotes)
set SSH_AUTH_SOCK ~/.1password/agent.sock
I now receive an error similar to the other questions on here.
The agent has no identities.
I did not have a Private
named vault. Mine was called Personal
. I did however create a new one called Private
but that did not seem to help.
With regards to the above:
Output of ls -l $SSH_AUTH_SOCK
lrwxr-xr-x 1 rohbue 1275873306 76 Mar 17 14:08 /Users/rohbue/.1password/agent.sock -> /Users/rohbue/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock
And Output of ssh -o
OpenSSH_8.9p1, OpenSSL 1.1.1m 14 Dec 2021
debug1: Reading configuration data /Users/rohbue/.ssh/config
debug1: /Users/rohbue/.ssh/config line 1: Applying options for *
debug1: /Users/rohbue/.ssh/config line 6: Ignored unknown option "usekeychain"
debug1: /Users/rohbue/.ssh/config line 13: Applying options for github.com
debug1: Reading configuration data /usr/local/etc/ssh/ssh_config
debug1: Connecting to github.com <OMITTED> port <OMITTED>.
debug1: Connection established.
debug1: identity file /Users/rohbue/.ssh/id_rsa type -1
debug1: identity file /Users/rohbue/.ssh/id_rsa-cert type -1
debug1: identity file /Users/rohbue/.ssh/id_ecdsa type -1
debug1: identity file /Users/rohbue/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/rohbue/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/rohbue/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/rohbue/.ssh/id_ed25519 type -1
debug1: identity file /Users/rohbue/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/rohbue/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/rohbue/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/rohbue/.ssh/id_xmss type -1
debug1: identity file /Users/rohbue/.ssh/id_xmss-cert type -1
debug1: identity file /Users/rohbue/.ssh/id_dsa type -1
debug1: identity file /Users/rohbue/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9
debug1: Remote protocol version 2.0, remote software version babeld-4f04c79d
debug1: compat_banner: no match: babeld-4f04c79d
debug1: Authenticating to github.com:22 as 'git'
debug1: load_hostkeys: fopen /Users/rohbue/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /usr/local/etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /usr/local/etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 <OMITTED>
debug1: load_hostkeys: fopen /Users/rohbue/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /usr/local/etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /usr/local/etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'github.com' is known and matches the ED25519 host key.
debug1: Found key in /Users/rohbue/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/rohbue/.ssh/id_rsa
debug1: Will attempt key: /Users/rohbue/.ssh/id_ecdsa
debug1: Will attempt key: /Users/rohbue/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/rohbue/.ssh/id_ed25519
debug1: Will attempt key: /Users/rohbue/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/rohbue/.ssh/id_xmss
debug1: Will attempt key: /Users/rohbue/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/rohbue/.ssh/id_rsa
debug1: Trying private key: /Users/rohbue/.ssh/id_ecdsa
debug1: Trying private key: /Users/rohbue/.ssh/id_ecdsa_sk
debug1: Trying private key: /Users/rohbue/.ssh/id_ed25519
debug1: Trying private key: /Users/rohbue/.ssh/id_ed25519_sk
debug1: Trying private key: /Users/rohbue/.ssh/id_xmss
debug1: Trying private key: /Users/rohbue/.ssh/id_dsa
debug1: No more authentication methods to try.
git@github.com: Permission denied (publickey).
Also for what its worth... my .ssh/config
not looks like this
```
Host *
IgnoreUnknown UseKeychain
IdentitiesOnly yes
IdentityAgent ~/.1password/agent.sock
AddKeysToAgent yes
UseKeychain yes
other gh alias for another team
Host smg.github.com
HostName github.com
User git
IdentityFile ~/.ssh/rohan_smg_generated
this is the gh im testing against / e.g my private gh acct
Host github.com
HostName github.com
User git
# IdentityFile ~/.ssh/rohan_private_generated
```