I would like to write a bash shell script which will connect to remote server using passphrase. (I have public-private infrastructure created, and as per instruction, I must not use password less ssh).
This particular script will be fired from cron.
Can you please advice how I can supply the passphrase (from any file or any other way) in the script ?
If that "instruction" is based on "security considerations", please be aware that supplying authentication from within a script or even a file is way less secure than e.g. ssh 's public key method!