I know there are several questions about ssh keys and how to configure it. But I found none to answer my question.
So here it is: I have several ssh keys in my .ssh
directory. For some remotes different keys.
Now I have neither configured in .ssh/config
which key to use for which host, nor have I added them to an agent manually, what some questions here already mentioned. I just created the keys with ssh-keygen
and it works.
Now I would like to know who is responsible for that and which keys are tried automatically? I have something in my mind that says about five keys are automatically checked for compatibility - but I cannot find where I found this information.
Does ssh-keygen
automatically add those keys to an agent? Or does ssh search for any matching key by default?