152 points · by tech234a · 6y ago · 55 comments
The top-rated comment mentioning having an "IdentitiesOnly yes" setting in your ~/.ssh/config is still relevant if you want to have multiple SSH keys and ensure that only specific hosts get specific keys.
EDIT: Also link is to a retweet, the source tweet is https://twitter.com/FiloSottile/status/1229093553269362689
https://gist.github.com/femto113/ef9162d670def84b3c684d2d305...
server -> user: nonce
user -> server: nonce2, h(nonce || nonce2 || publickey) (for every publickey)
or alternatively user -> server: nonce
server -> user: nonce2, h(nonce || nonce2 || publickey) (for every publickey)
It would still leak the amount of keys (for the user for the 1st protocol and for the server for the second) but nothing about them. (I would also suggest using a modern hash function for h, such as blake(2) or sha3)There should be a way to extend this protocol as to not leak the amount of keys.
Source: https://heipei.io/2015/02/26/SSH-Agent-Forwarding-considered...
It is not, it just makes you identifiable. Public SSH keys are… well, public.
> Does it use a popular accounts index, or maybe he crawled a bit?
Ben Cartwright-Cox (aka. benjojo) [1] crawled many “github.com/USERNAME.keys” some time ago [2].
Filippo, being colleagues, probably asked for a copy of his database to run this experiment.
For example, here are the public SSH keys Linus Torvalds uses on GitHub [3].
[1] https://github.com/benjojo
[2] https://blog.benjojo.co.uk/post/auditing-github-users-keys
For example a server can send a challenge which requires knowledge of the private key to solve but does not reveal anything from the client on failure.
If the server has multiple authorized_keys it could just send multiple challenges and accept a reply for any of them.
Am I missing something? This seems like a nice privacy feature.
And it’s not so much “places you’re not supposed to” as “places you know haven’t been compromised in any way”, which is difficult to know unless you’re the sysadmin.
Most people don't care about this and so I'm comfortable with the default not being IdentitiesOnly
It's probably more surprising for any early adopters of FIDO for SSH, since WebAuthn (to do FIDO on the web) and its predecessor U2F both do ensure your identity can't be correlated between sites, but the new SSH support does not provide that.
Anyway, yes, I'm also comfortable with the default, I'm just pointing out why "don't SSH places you're not supposed to" isn't a relevant argument.
Will regular HTTPS certificates work?