I am trying to automate a file fetch from an external [SFTP] server. The server is using 2-factor authentication. First, it needs a public-private key pairing established [This has already been done], next, it asks for a password for login.
The server's settings are outside my control [Its a vendor system] and I would prefer not to install modules like expect or sshpass [company policy]. I can use PERL/KSH for automating the fetch, along with most applications that come pre-installed on RHL [CURL,WGET,etc].
Is there any way out of this?