3
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?
Aren't the keys labeled by IP/name? – schroeder – 2016-04-19T19:47:53.890
Related with detailed answers http://superuser.com/questions/268776/how-do-i-configure-ssh-so-it-dosent-try-all-the-identity-files-automatically
– dave_thompson_085 – 2016-04-20T04:56:27.207@dave_thompson_085 , thanks that topic helped – volk – 2016-04-20T09:26:45.663