nixCraft published a tutorial about using ssh-agent for authentication on Linux.
How to use ssh-agent for authentication on Linux / Unix - nixCraft
Explain how to use ssh-agent and ssh-add for non-interactive public key authentication when the private key is protected with a passphrase.
How to use ssh-agent for authentication on Linux / Unix - nixCraft