I need to script file transfers between two servers. Local server is RHEL 5.x. Remote location uses two-factor authentication (key+password). Authenticates fine on the key-pair but I can't find syntax that would allow me to relay the password.
Command example that partialy works:
sftp -oIdentityFile=<path_to_ssh_key> <un>@<site>
SCP is apparently a possibility, but the remote location apparently doesn't have anyone who uses it so future support might be shallow.
Anything else I can try?