in reply to Net::SFTP::Foreign does not support both passphrase and password?
Thank you salva and sundialsvc4.
I cannot control how the remote server is configured. I have to code on their spec.