How does ssh-agent
understand which key should it use for which remote server?
I've came across different questions and posts that touches this topic somehow, but it still remain unclear to me.
What I have found is that if you want to use different ssh keys you need to use -i
option and specify path to needed key or you can setup Identity files that specifies which key pair for which host to use.
But does it mean that by default ssh-agent
can use only one key pair and it will try to use it for all remote servers?