Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by elric on Saturday July 29, 2023 @01:12PM
(#36922323)
How many keys can I store inside a laptop's TPM? Is there a limit? I have hundreds of SSH key pairs, one for each thing I connect to. My .ssh/config file defaults to a nonexistent key for all hosts, except for hosts configured elsewhere in the file, where each host gets its own IdentityFile entry.
[ Parent
| on HN ]
Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by Foxboron on Saturday July 29, 2023 @01:37PM
(#36922567)
It has 6.3 Kb or something of memory. So not a lot.
What `ssh-tpm-agent` does is that it simply doesn't store the keys on the TPM at all. It creates the ephemeral SRK, then load a sealed private key back into the TPM that allows us to use it.
So you can have a couple hundred SSH key pair this way.
Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by sneak on Saturday July 29, 2023 @02:33PM
(#36923112)
What is your threat model that requires such complexity?
Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by elric on Saturday July 29, 2023 @04:31PM
(#36924244)
It's not terribly complex, and it's all scripted. I don't like my identity being trackable across services, or across areas of my life. For instance, dickheads have created databases of public keys scraped from services like github, which can be used to identify the vast majority of github users whenever they ssh into some other service. By default, the ssh client will try to authenticate with every available keypair until it finds a match, which can further leak information about you(r machine).
Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by sneak on Saturday July 29, 2023 @04:56PM
(#36924479)
Yes, I understand the attack, but what is the threat? You are already uniquely identifying yourself to each of these servers. What is the threat to you if your identity is correlated between them? You probably have the same username on many of them, no?
It seems like privacy cosplay to me, tbh. I'm genuinely curious what type of threat it actually protects against, if any. What happens when two different systems you ssh into knows it's elric on both?
Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by sah2ed on Saturday July 29, 2023 @05:02PM
(#36924551)
Show HN: My SSH server knows who you are
Re:Show HN: ssh-tpm-agent – SSH agent for TPMs
by heavyset_go on Saturday July 29, 2023 @03:15PM
(#36923490)
Why are you doing this instead of using hardware security keys?