I configured different hosts and keys for them in ~/.ssh/config file. But, to manage the passphrases of different keys, I seek help from ssh-agent by adding the keys to it, via ssh-add command. Now when I ssh my hosts, the agent offers all the keys it has one-by-one. I searched how to restrict this behavior of ssh-agent and, usedIdentitiesOnly yesin the config file for all hosts.I successfully restricted the ssh-agent from offering the keys it has, by doing so, but the ssh-agent is no more managing the pass-phrases and I have to enter pass-phrase every time I ssh.Is there a way to render only the key for the specific host I am ssh - ing (reading from the ~/.ssh/config file) and manage the passphrase too?
How to use ssh-agent for offering host specific keys from ~/.ssh/config file and manage the passphrases?
ssh;ssh agent