how to avoid being asked "Enter passphrase for key " when I'm doing ssh operation on a remote host?

 On Mac, add UseKeyChain to ~/.ssh/config


nano ~/.ssh/config

and add the following


Host *

    UseKeychain yes