I'd like to highlight the command tcti's inclusion into the TSS:
What's really cool, if you have tpm2_send on master post PR 2094:
You can use it to run commands on remote machine. For instance, you can
Run a tpm command over an SSH tunnel on a remote machine to get the
quote. There will be no endianness issues in anything and no worries of
how to transmit the data.
Another great perk, is that if your device node has a too old version
of tpm2-tools, you can just issue a partial update to tpm2_send, or provide
some other command suitable. For most devices, something that
can read and write a file might be useful, not really sure offhand what
that would look like in entirety.
tpm2_getrandom -T "cmd:ssh localhost tpm2_send" --hex 4