Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified" on git bug push #1023

Open
NobbZ opened this issue Feb 23, 2023 · 4 comments

Comments

@NobbZ
Copy link

NobbZ commented Feb 23, 2023

Please guide me to a way to provide additional information…

Yes, I use SSH URLs for git.
No, they are not password protected.

If though starting SSH-Agent and adding the key, the error becomes:

Error: ssh: handshake failed: knownhosts: key mismatch

Regular git operations against the remote work.

@patricioantoniotoledo
Copy link

cd ~/.ssh
ssh-add ~/.ssh/id_rsa

might help

@NobbZ
Copy link
Author

NobbZ commented Nov 5, 2023

To be honest, I do not even (want to) use SSH-agent.

I want the configured SSH-config to be respected and the command to just work.

I stoped using git-bug because of this a couple of days after posting this issue without a reply.

@octvs
Copy link

octvs commented Dec 21, 2023

Might be related, I had a similar issues prompting an handshake fail, which was fixed by building from source.

@dllud
Copy link

dllud commented Jan 24, 2024

I was facing the exact same error in the title. Besides starting a SSH Agent eval "$(ssh-agent -s)" and adding the key ssh-add ~/.ssh/mykey, I had to use a full URL (ssh://user@server.org:22/path/to/project.git) in the git remote. Only this got git bug push/pull working. This workaround was reported by @Subfortytwo at #572.
It seems like the SSH Agent does not read my ~/.ssh/config?

Anyway, I am on the same page as @NobbZ: I would rather avoid using a SSH Agent. Is that possible? It wasn't needed last time I used git-bug (a couple years ago).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants