Skip to content

Small improvement for usage example #95

@c-kr

Description

@c-kr

Hi and thanks for this great tool,

i have a small improvement proposal for the first usage example in the README:

# Using the socket
$ ssh-tpm-agent -l /var/tmp/tpm.sock

$ export SSH_AUTH_SOCK="$(ssh-tpm-agent --print-socket)"

$ ssh git@github.com

I started the agent with ssh-tpm-agent -l /var/tmp/tpm.sock. This started the agent in the foreground more, not as daemon. So i changed to another terminal and ran export SSH_AUTH_SOCK="$(ssh-tpm-agent --print-socket)" an tried to ssh connect. But this failed because the agent could not read the environment variable from the agent in the other terminal, so the fallback (/run/user/1000/ssh-tpm-agent.sock) was used and the connect failed.

So to fix the documentation i recommend to either start the agent in background or remove -l /var/tmp/tpm.sock from the args to use the default also here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions