Automation of SFTP script when key has passphrase
putfrom my Windows XP Pro workstation (with WinSCP installed) to another Windows XP workstation with OpenSSH installed.
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 include the passphrase in a flag in the
opencommand. 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.