This question already has an answer here:
I have enabled private key based access to my server. I have generated the certificates with a passphrase.
So to ssh to that machine I have to do -
$ ssh -i .ssh/id_rsa_server email@example.com
and It asks me for my passphrase before allowing access to the server -
Enter passphrase for key '/home/magic/.ssh/id_server':
When I want to copy a file from server, I do -
$ scp -i id_rsa_server firstname.lastname@example.org:~/backups/dailyHeavyBkp_21112013.sql.lzma ~/backup
It again asks me for the passphrase. I want to avoid this. I know I can avoid this with an empty passphrase but I don't want that.
Because I am going to put
scp ... as a
cronjob I don't want it to ask for passphrase. How do I do that?