3 ms·
> It shares all your keys, when you probably actually want to share zero or one of them. Is that true though? When I connect to a server I generally want ssh t
by Aeolun 4y ago
> It shares all your keys, when you probably actually want to share zero or one of them.
Is that true though? When I connect to a server I generally want ssh to connect with _any_ of the keys that are currently in my agent. For that to happen the server needs to check if I’m allowed to connect with each of them, therefore I have to send that information to the server.
I guess SSH could default to asking me which key I want to connect with and then store that info afterwards?
If I wanted it to connect using only a specific key for that host (or pattern), I’d specify that in my ssh config.
- chrismorgan 4y ago> I guess SSH could default to asking me which key I want to connect with and then store that info afterwards? Exactly. When you consider that it already does this sort of thing for host keys, it’s really a pretty obvious way to plug the information disclosure vulnerability.