I am using RSA private/public key encryption.
When I set up the keys, I entered a passphrase, because I understand that this is good practice.
However, when I run the script, the SFTP program prompts for the passphrase to complete the authorisation. I see no way to inlcude the passphrase in a flag in the "open" command. This makes the process non-automated because it requires user interaction.
Additionally, sometimes I find that I must execute the script *twice* in order for the little text file to be copied from my PC to the remote PC. This seems wrong.
I should be grateful for assistance.