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

x/crypto/ssh: ssh failed to connect: ssh: handshake failed: agent: failed to list keys #23119

Closed
vitesse-ftian opened this issue Dec 13, 2017 · 3 comments

Comments

@vitesse-ftian
Copy link

@vitesse-ftian vitesse-ftian commented Dec 13, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9.1, 1.9.2

Does this issue reproduce with the latest release?

with 1.9.2 release

What operating system and processor architecture are you using (go env)?

Unbuntu 16

What did you do?

ssh was working, but suddenly I saw this,
ssh: handshake failed: agent: failed to list keys

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

What did you see instead?

@titanous
Copy link
Member

@titanous titanous commented Dec 13, 2017

Please provide the code that you are using to make the SSH connection, and check that the SSH agent is configured properly and working with another client (for example OpenSSH).

@titanous titanous changed the title ssh failed to connect: ssh: handshake failed: agent: failed to list keys x/crypto/ssh: ssh failed to connect: ssh: handshake failed: agent: failed to list keys Dec 13, 2017
@gopherbot gopherbot added this to the Unreleased milestone Dec 13, 2017
@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Dec 13, 2017

There's not enough information here to help.

For questions about Go, see https://golang.org/wiki/Questions.

But lie @titanous says, your environment and/or agent are probably messed up. This doesn't smell like a Go problem. Closing as there's nothing actionable here for us.

@bradfitz bradfitz closed this Dec 13, 2017
@vitesse-ftian
Copy link
Author

@vitesse-ftian vitesse-ftian commented Jun 22, 2018

Just to confirm that it is environment/agent related. I ran into this problem again and the following fixed it.

eval `ssh-agent -s`
ssh-add
@golang golang locked and limited conversation to collaborators Jun 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.