teleport icon indicating copy to clipboard operation
teleport copied to clipboard

SSH agent errors blocking every tsh command

Open drewwells opened this issue 1 year ago • 13 comments

I run 1password ssh-agent SSH'd into a linux machine. If I turn off ssh-agent, I am able to use tsh. I don't know what keys it's trying to shove into SSH, but it would be great to simply disable the feature rather than being unable to use teleport at all right now.

Expected behavior: Clusters are listed

-> % tsh clusters

Current behavior:

-> % tsh clusters
ERROR: failed to add one or more keys to the agent.
agent: failure, agent: failure

Bug details:

  • Teleport version 12.0.2
  • Recreation steps: run any tsh command
  • Debug logs

ERROR REPORT:
Original Error: trace.aggregate agent: failure, agent: failure
Stack Trace:
        github.com/gravitational/teleport/lib/client/keyagent.go:233 github.com/gravitational/teleport/lib/client.(*LocalKeyAgent).LoadKey
        github.com/gravitational/teleport/lib/client/keyagent.go:176 github.com/gravitational/teleport/lib/client.(*LocalKeyAgent).LoadKeyForCluster
        github.com/gravitational/teleport/lib/client/api.go:1032 github.com/gravitational/teleport/lib/client.(*TeleportClient).LoadKeyForCluster
        github.com/gravitational/teleport/tool/tsh/tsh.go:3367 main.makeClientForProxy
        github.com/gravitational/teleport/tool/tsh/tsh.go:3116 main.makeClient
        github.com/gravitational/teleport/tool/tsh/config.go:45 main.onConfig
        github.com/gravitational/teleport/tool/tsh/tsh.go:1165 main.Run
        github.com/gravitational/teleport/tool/tsh/tsh.go:480 main.main
        runtime/proc.go:250 runtime.main
        runtime/asm_amd64.s:1594 runtime.goexit
User Message: failed to add one or more keys to the agent.
        agent: failure, agent: failure

drewwells avatar Feb 27 '23 17:02 drewwells