Use ssh-agent When
You authenticate repeatedly and want to avoid entering passphrases every time.
You switch between multiple hosts and identities during a normal work session.
When an SSH agent simplifies authentication and when direct key paths are enough.
An SSH agent keeps decrypted keys available for reuse during a session. Direct key usage can be simpler for one-off commands or tightly controlled automation.
You authenticate repeatedly and want to avoid entering passphrases every time.
You switch between multiple hosts and identities during a normal work session.
You want explicit key selection for one command or one script.
You prefer a lower-magic setup in tightly scoped automation.
Use an agent for repeated interactive auth. Use explicit keys for tightly scoped control.