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
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@vitesse-ftian
Copy link

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

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 added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 13, 2017
@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

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.

@vitesse-ftian
Copy link
Author

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.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants