We are trying to create an sftp (or lftp) script on a cloud-based server. There are two things that are complicating this:
1. The cloud-based host does not allow "expect" to be installed
2. The remote host has our ssh key installed on it. Any SFTP or LFTP connection is requiring that I enter the passphrase for the key.
2a. The remote host still requires a password for an SFTP connection, even with the ssh key installed.
I'm trying to figure out how to write a script that will send the passphrase and the password to authenticate, and then send files to the remote server.
Any help would be greatly appreciated!