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.
Hi and thanks for this great tool,
i have a small improvement proposal for the first usage example in the README:
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 ranexport 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.sockfrom the args to use the default also here.